Skip to content

Commit

Permalink
Refs #20141: Apply suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Jesus Perez <jesusperez@eprosima.com>
  • Loading branch information
jepemi committed Feb 21, 2024
1 parent e36dcb4 commit d2e76a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions test/unittest/transport/TCPv4Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2069,9 +2069,7 @@ TEST_F(TCPv4Tests, reconnect_after_open_port_failure)

// Add initial peer to the client
Locator_t initialPeerLocator;
initialPeerLocator.kind = LOCATOR_KIND_TCPv4;
IPLocator::setIPv4(initialPeerLocator, 127, 0, 0, 1);
initialPeerLocator.port = port;
IPLocator::createLocator(LOCATOR_KIND_TCPv4, "127.0.0.1", port, initialPeerLocator);
IPLocator::setLogicalPort(initialPeerLocator, 7410);

// Connect client to server
Expand Down
4 changes: 1 addition & 3 deletions test/unittest/transport/TCPv6Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,7 @@ TEST_F(TCPv6Tests, reconnect_after_open_port_failure)

// Add initial peer to the client
Locator_t initialPeerLocator;
initialPeerLocator.kind = LOCATOR_KIND_TCPv6;
IPLocator::setIPv6(initialPeerLocator, "::1");
initialPeerLocator.port = port;
IPLocator::createLocator(LOCATOR_KIND_TCPv6, "::1", port, initialPeerLocator);
IPLocator::setLogicalPort(initialPeerLocator, 7410);

// Connect client to server
Expand Down

0 comments on commit d2e76a9

Please sign in to comment.