summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2019-10-20 21:25:03 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-10-26 07:02:54 +0900
commit2e05695f683430bdf39573b19f51bac4dcbbc693 (patch)
tree3f80939fb737832dbf8f8f5ebe0b35e0e9900718 /test
parentb4e2d9e440a4eb6d3091a7c586d2e55b69ec968a (diff)
avoid installing routes with originator ID to global when softresetin
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/scenario_test/aspath_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/scenario_test/aspath_test.py b/test/scenario_test/aspath_test.py
index c93cc7e5..e8227adf 100644
--- a/test/scenario_test/aspath_test.py
+++ b/test/scenario_test/aspath_test.py
@@ -91,7 +91,7 @@ class GoBGPTestBase(unittest.TestCase):
def test_03_update_peer(self):
self.g2.update_peer(self.q1, allow_as_in=10)
- self.q1.wait_for(expected_state=BGP_FSM_ESTABLISHED, peer=self.g2)
+ self.g2.wait_for(expected_state=BGP_FSM_ESTABLISHED, peer=self.q1)
def test_04_check_accept_as_loop(self):
def f():
@@ -102,6 +102,7 @@ class GoBGPTestBase(unittest.TestCase):
for afisafi in r['afi_safis']:
self.assertTrue('state' in afisafi)
s = afisafi.get('state')
+ self.assertTrue('received' in s)
received += s.get('received')
accepted += s.get('accepted')
self.assertEqual(received, 1)