summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlawek Kaplonski <skaplons@redhat.com>2018-06-06 13:42:37 +0200
committerSlawek Kaplonski <skaplons@redhat.com>2018-06-08 07:25:15 +0000
commit9eef1db160521076d8243f1980e681f0f04ecbc6 (patch)
treecb4df84f97f5668a48fa31eb53880e0ed64ca8ed
parent2206636feca043a9ab958010a00641f92957e8a5 (diff)
downloadneutron-9eef1db160521076d8243f1980e681f0f04ecbc6.tar.gz
[Fullstack] Change time waiting for async ping results12.0.3
During agents restart there is async ping run and there is called function to wait until all async ping workers will finish their job. In TestHAL3Agent.test_ha_router_restart_agents_no_packet_lost there are 60 pings sent with 1 second timeout so default wait_until_true timeout which is set to 60 seconds might not be enough in some cases. Because of that wait_until_true timeout is now set as twice higher value than is needed to number of packets to send with ping_timeout. This should give enough time to finish all workers. Change-Id: Ia7c3755c2ba5029bdab3c1dd30b305f3bde19740 Closes-Bug: #1775183 (cherry picked from commit 32f14aa8a030e0d619ddd4989a3ea54a481f20e5)
-rw-r--r--neutron/tests/fullstack/base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/neutron/tests/fullstack/base.py b/neutron/tests/fullstack/base.py
index 8adae386c8..85bda492e8 100644
--- a/neutron/tests/fullstack/base.py
+++ b/neutron/tests/fullstack/base.py
@@ -101,5 +101,6 @@ class BaseFullStackTestCase(testlib_api.MySQLTestCaseMixin,
# happen only after RPC is established
common_utils.wait_until_true(
done,
+ timeout=count * (ping_timeout + 1),
exception=RuntimeError("Could not ping the other VM, L2 agent "
"restart leads to network disruption"))