Skip to content

Commit af29d4f

Browse files
committed
fix
1 parent f0199da commit af29d4f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/s3_mock_server_tests.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ TEST_CASE(multipart_upload_with_n_retries_mock_server) {
398398
struct aws_s3_client *client = NULL;
399399
ASSERT_SUCCESS(aws_s3_tester_client_new(&tester, &client_options, &client));
400400
struct aws_s3_client_vtable *patched_client_vtable = aws_s3_tester_patch_client_vtable(&tester, client, NULL);
401-
patched_client_vtable->after_prepare_upload_part_finish = s_upload_part_with_n_retries;
401+
patched_client_vtable->after_prepare_upload_part_finish_stub = s_upload_part_with_n_retries;
402402

403403
int object_size = 10;
404404
int parts = object_size / part_size;
@@ -466,7 +466,7 @@ TEST_CASE(multipart_upload_failure_with_mock_server) {
466466
struct aws_s3_client *client = NULL;
467467
ASSERT_SUCCESS(aws_s3_tester_client_new(&tester, &client_options, &client));
468468
struct aws_s3_client_vtable *patched_client_vtable = aws_s3_tester_patch_client_vtable(&tester, client, NULL);
469-
patched_client_vtable->after_prepare_upload_part_finish = s_upload_part_force_fail;
469+
patched_client_vtable->after_prepare_upload_part_finish_stub = s_upload_part_force_fail;
470470

471471
int object_size = 10;
472472
int parts = object_size / part_size;
@@ -772,7 +772,7 @@ TEST_CASE(multipart_upload_with_network_interface_names_mock_server) {
772772
}
773773

774774
/* Total hack to flip the bytes. */
775-
static void s_after_prepare_upload_part_finish(struct aws_s3_request *request, struct aws_http_message *message) {
775+
static void s_after_prepare_upload_part_finish_stub(struct aws_s3_request *request, struct aws_http_message *message) {
776776
(void)message;
777777
if (request->num_times_prepared == 0 && message != NULL) {
778778
struct aws_http_header throttle_header = {
@@ -787,7 +787,7 @@ static void s_after_prepare_upload_part_finish(struct aws_s3_request *request, s
787787
}
788788
}
789789

790-
static void s_after_prepare_upload_part_finish_retry_before_finish_sending(
790+
static void s_after_prepare_upload_part_finish_stub_retry_before_finish_sending(
791791
struct aws_s3_request *request,
792792
struct aws_http_message *message) {
793793
if (request->num_times_prepared == 0 && message != NULL) {
@@ -825,7 +825,7 @@ TEST_CASE(multipart_upload_checksum_with_retry_before_finish_mock_server) {
825825
ASSERT_SUCCESS(aws_s3_tester_client_new(&tester, &client_options, &client));
826826
struct aws_s3_client_vtable *patched_client_vtable = aws_s3_tester_patch_client_vtable(&tester, client, NULL);
827827
patched_client_vtable->after_prepare_upload_part_finish_stub =
828-
s_after_prepare_upload_part_finish_retry_before_finish_sending;
828+
s_after_prepare_upload_part_finish_stub_retry_before_finish_sending;
829829

830830
struct aws_byte_cursor object_path = aws_byte_cursor_from_c_str("/default");
831831
{
@@ -884,7 +884,7 @@ TEST_CASE(multipart_upload_checksum_with_retry_mock_server) {
884884
struct aws_s3_client *client = NULL;
885885
ASSERT_SUCCESS(aws_s3_tester_client_new(&tester, &client_options, &client));
886886
struct aws_s3_client_vtable *patched_client_vtable = aws_s3_tester_patch_client_vtable(&tester, client, NULL);
887-
patched_client_vtable->after_prepare_upload_part_finish_stub = s_after_prepare_upload_part_finish;
887+
patched_client_vtable->after_prepare_upload_part_finish_stub = s_after_prepare_upload_part_finish_stub;
888888

889889
struct aws_byte_cursor object_path = aws_byte_cursor_from_c_str("/default");
890890
{
@@ -967,7 +967,7 @@ TEST_CASE(multipart_upload_checksum_fio_with_retry_mock_server) {
967967
ASSERT_SUCCESS(aws_s3_tester_client_new(&tester, &client_options, &client));
968968
struct aws_s3_client_vtable *patched_client_vtable = aws_s3_tester_patch_client_vtable(&tester, client, NULL);
969969
patched_client_vtable->after_prepare_upload_part_finish_stub =
970-
s_after_prepare_upload_part_finish_retry_before_finish_sending;
970+
s_after_prepare_upload_part_finish_stub_retry_before_finish_sending;
971971
struct aws_s3_file_io_options fio_opts = {
972972
.should_stream = true,
973973
.direct_io = true,

0 commit comments

Comments
 (0)