Skip to content

Commit

Permalink
revert unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Feb 25, 2025
1 parent 7cdb573 commit 7689c3b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ static int s_test_tls_download_medium_file_general(
http_options.allocator = test.alloc;
http_options.bootstrap = test.client_bootstrap;
http_options.host_name = *aws_uri_host_name(&uri);
http_options.port = 80;
http_options.port = 443;
http_options.on_setup = s_on_connection_setup;
http_options.on_shutdown = s_on_connection_shutdown;
http_options.socket_options = &socket_options;
// http_options.tls_options = &tls_connection_options;
http_options.tls_options = &tls_connection_options;
http_options.user_data = &test;

ASSERT_SUCCESS(aws_http_client_connect(&http_options));
Expand Down Expand Up @@ -247,8 +247,7 @@ AWS_TEST_CASE(tls_download_medium_file_h1, s_test_tls_download_medium_file_h1);
static int s_tls_download_medium_file_h2(struct aws_allocator *allocator, void *ctx) {
(void)ctx;
/* The cloudfront domain for aws-crt-test-stuff */
struct aws_byte_cursor url =
aws_byte_cursor_from_c_str("http://aws-crt-test-stuff.s3.amazonaws.com/http_test_doc.txt");
struct aws_byte_cursor url = aws_byte_cursor_from_c_str("https://d1cz66xoahf9cl.cloudfront.net/http_test_doc.txt");
ASSERT_SUCCESS(s_test_tls_download_medium_file_general(allocator, url, true /*h2_required*/));
return AWS_OP_SUCCESS;
}
Expand All @@ -259,7 +258,7 @@ static int s_test_tls_download_shutdown_with_window_size_0(struct aws_allocator

aws_http_library_init(allocator);
struct aws_byte_cursor uri_str =
aws_byte_cursor_from_c_str("http://aws-crt-test-stuff.s3.amazonaws.com/http_test_doc.txt");
aws_byte_cursor_from_c_str("https://aws-crt-test-stuff.s3.amazonaws.com/http_test_doc.txt");
struct aws_uri uri;
AWS_ZERO_STRUCT(uri);
aws_uri_init_parse(&uri, allocator, &uri_str);
Expand Down

0 comments on commit 7689c3b

Please sign in to comment.