Skip to content

Commit

Permalink
Unique port between test_socket_with_bind_to_interface and test_tcp_s…
Browse files Browse the repository at this point in the history
…ocket_communication (#667)
  • Loading branch information
waahm7 committed Aug 2, 2024
1 parent b561534 commit c345d77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/socket_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)) {
Expand Down

0 comments on commit c345d77

Please sign in to comment.