Wait a bit longer for tcpdump to store captures to the file

This patch adds 5 seconds sleep in the ``check_north_south_icmp_flow`` method in the
``BaseTempestWhiteboxTestCase`` before stoping tcpdump captures. This is
to make sure that whatever was captured on the vms is actually stored
in the file so that it can be read later during the test.

This change is similar to what was already done in [1] for the method
``test_east_west_icmp_flow`` in the same class.

[1] https://review.opendev.org/c/x/whitebox-neutron-tempest-plugin/+/925323

Closes-Bug: #OSPRH-11312
Change-Id: Ic51c46f864a9c34e24a3d969f95a0d721f3eec77
This commit is contained in:
Slawek Kaplonski
2025-01-14 12:18:41 +01:00
parent 46e40755d4
commit 37a4f7b828

View File

@@ -1227,6 +1227,7 @@ class TrafficFlowTest(BaseTempestWhiteboxTestCase):
self._start_captures(filters)
self.check_remote_connectivity(
ssh_client, dst_ip, mtu=size, ping_count=2)
time.sleep(5)
self._stop_captures()
LOG.debug('Expected routing nodes: %s', expected_routing_nodes)
actual_routing_nodes = [node['short_name']