Skip to content

Commit

Permalink
test(hotplug): increase nc timeout (#5763)
Browse files Browse the repository at this point in the history
Increase timeout check in netcat command for test_multi_nic_hotplug, as
there are instances where the 5s timeout is not enough.
  • Loading branch information
aciba90 committed Oct 1, 2024
1 parent 9dff1af commit ff336d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration_tests/modules/test_hotplug.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def test_multi_nic_hotplug(setup_image, session_cloud: IntegrationCloud):

# SSH over all public ips works
for pub_ip in public_ips:
subp("nc -w 5 -zv " + pub_ip + " 22", shell=True)
subp("nc -w 10 -zv " + pub_ip + " 22", shell=True)

# Remove new NIC
client.instance.remove_network_interface(secondary_priv_ip)
Expand All @@ -287,7 +287,7 @@ def test_multi_nic_hotplug(setup_image, session_cloud: IntegrationCloud):
public_ips = client.instance.public_ips
assert len(public_ips) == 1
# SSH over primary NIC works
subp("nc -w 1 -zv " + public_ips[0] + " 22", shell=True)
subp("nc -w 10 -zv " + public_ips[0] + " 22", shell=True)

ips_after_remove = _get_ip_addr(client)
assert len(ips_after_remove) == len(ips_before)
Expand Down

0 comments on commit ff336d4

Please sign in to comment.