Skip to content

Commit 2e900b4

Browse files
committed
increase the memory limit so that we are not limited by that
1 parent 1a334d0 commit 2e900b4

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

tests/s3_data_plane_tests.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5172,8 +5172,10 @@ static int s_test_s3_round_trip_dynamic_range_size_download_single_part(struct a
51725172
struct aws_s3_tester tester;
51735173
ASSERT_SUCCESS(aws_s3_tester_init(allocator, &tester));
51745174

5175+
/* Gives it a higher memory limit to allow parts around 30MiB */
51755176
struct aws_s3_tester_client_options client_options = {
51765177
.part_size = MB_TO_BYTES(8),
5178+
.memory_limit_in_bytes = GB_TO_BYTES(5),
51775179
};
51785180

51795181
struct aws_s3_client *client = NULL;

tests/s3_tester.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,7 @@ int aws_s3_tester_client_new(
14141414
.s3express_provider_override_factory = options->s3express_provider_override_factory,
14151415
.factory_user_data = options->factory_user_data,
14161416
.enable_s3express = options->s3express_provider_override_factory != NULL,
1417+
.memory_limit_in_bytes = options->memory_limit_in_bytes,
14171418
};
14181419
struct aws_http_proxy_options proxy_options = {
14191420
.connection_type = AWS_HPCT_HTTP_FORWARD,

tests/s3_tester.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ struct aws_s3_tester_client_options {
142142
uint32_t use_proxy : 1;
143143
aws_s3express_provider_factory_fn *s3express_provider_override_factory;
144144
void *factory_user_data;
145+
uint64_t memory_limit_in_bytes;
145146
};
146147

147148
/* should really break this up to a client setup, and a meta_request sending */

0 commit comments

Comments
 (0)