Skip to content

Commit

Permalink
change validation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jul 8, 2024
1 parent e9ba26b commit d4b932b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/s3_mock_server_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,19 @@ TEST_CASE(multipart_upload_with_network_interface_names_mock_server) {
.object_path_override = object_path,
},
.mock_server = true,
#if !defined(AWS_OS_APPLE) && !defined(AWS_OS_LINUX)
.validate_type = AWS_S3_TESTER_VALIDATE_TYPE_NO_VALIDATE,
#endif
};
struct aws_s3_meta_request_test_results out_results;
aws_s3_meta_request_test_results_init(&out_results, allocator);
ASSERT_SUCCESS(aws_s3_tester_send_meta_request_with_options(&tester, &put_options, &out_results));
if (out_results.finished_error_code != 0) {
#if !defined(AWS_OS_APPLE) && !defined(AWS_OS_LINUX)
if (aws_last_error() == AWS_ERROR_PLATFORM_NOT_SUPPORTED) {
return AWS_OP_SKIP;
}
#endif
ASSERT_TRUE(false, "aws_s3_tester_send_meta_request_with_options(() failed");
}
aws_s3_meta_request_test_results_clean_up(&out_results);
aws_s3_client_release(client);
aws_s3_tester_clean_up(&tester);
Expand Down

0 comments on commit d4b932b

Please sign in to comment.