From c345d77274db83c0c2e30331814093e7c84c45e2 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Khan Date: Fri, 2 Aug 2024 15:35:40 -0700 Subject: [PATCH] Unique port between test_socket_with_bind_to_interface and test_tcp_socket_communication (#667) --- tests/socket_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/socket_test.c b/tests/socket_test.c index 8f438fc35..ecc47c2b2 100644 --- a/tests/socket_test.c +++ b/tests/socket_test.c @@ -447,7 +447,7 @@ static int s_test_socket_with_bind_to_interface(struct aws_allocator *allocator, #else strncpy(options.network_interface_name, "lo", AWS_NETWORK_INTERFACE_NAME_MAX); #endif - struct aws_socket_endpoint endpoint = {.address = "127.0.0.1", .port = 8127}; + struct aws_socket_endpoint endpoint = {.address = "127.0.0.1", .port = 8128}; if (s_test_socket(allocator, &options, &endpoint)) { #if !defined(AWS_OS_APPLE) && !defined(AWS_OS_LINUX) if (aws_last_error() == AWS_ERROR_PLATFORM_NOT_SUPPORTED) { @@ -460,7 +460,7 @@ static int s_test_socket_with_bind_to_interface(struct aws_allocator *allocator, options.domain = AWS_SOCKET_IPV4; ASSERT_SUCCESS(s_test_socket(allocator, &options, &endpoint)); - struct aws_socket_endpoint endpoint_ipv6 = {.address = "::1", .port = 8128}; + struct aws_socket_endpoint endpoint_ipv6 = {.address = "::1", .port = 8129}; options.type = AWS_SOCKET_STREAM; options.domain = AWS_SOCKET_IPV6; if (s_test_socket(allocator, &options, &endpoint_ipv6)) {