summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/bgp_router_test.py
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-29 11:06:53 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-29 16:17:22 +0900
commit2ad42ead02cce21cf71b3dde0731e8f5c6d4ac6a (patch)
treeeb4fd965994617ccc4394a0c2b1dedaa6540c591 /test/scenario_test/bgp_router_test.py
parent941786a05891c68519582125117a203207365af8 (diff)
test: insert sleep to fix unstable test
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/bgp_router_test.py')
-rw-r--r--test/scenario_test/bgp_router_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/scenario_test/bgp_router_test.py b/test/scenario_test/bgp_router_test.py
index dbbc2c2b..a5ce3d7e 100644
--- a/test/scenario_test/bgp_router_test.py
+++ b/test/scenario_test/bgp_router_test.py
@@ -236,11 +236,15 @@ class GoBGPTestBase(unittest.TestCase):
self.gobgp.disable_peer(q1)
self.gobgp.wait_for(expected_state=BGP_FSM_IDLE, peer=q1)
+ time.sleep(3)
+
for route in q1.routes.iterkeys():
dst = self.gobgp.get_global_rib(route)
self.assertTrue(len(dst) == 0)
for q in self.quaggas.itervalues():
+ if q is q1:
+ continue
paths = self.gobgp.get_adj_rib_out(q, route)
self.assertTrue(len(paths) == 0)