summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/scenario_test/lib')
-rw-r--r--test/scenario_test/lib/base.py2
-rw-r--r--test/scenario_test/lib/gobgp.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/test/scenario_test/lib/base.py b/test/scenario_test/lib/base.py
index 5dec078f..66e610d9 100644
--- a/test/scenario_test/lib/base.py
+++ b/test/scenario_test/lib/base.py
@@ -259,7 +259,7 @@ class BGPContainer(Container):
def get_neighbor_state(self, peer_id):
raise Exception('implement get_neighbor() method')
- def wait_for(self, expected_state, peer, timeout=10):
+ def wait_for(self, expected_state, peer, timeout=120):
interval = 1
count = 0
while True:
diff --git a/test/scenario_test/lib/gobgp.py b/test/scenario_test/lib/gobgp.py
index 3b7ec5ba..1bfcf5fe 100644
--- a/test/scenario_test/lib/gobgp.py
+++ b/test/scenario_test/lib/gobgp.py
@@ -124,7 +124,7 @@ class GoBGPContainer(BGPContainer):
output = local(cmd, capture=True)
return json.loads(output)['info']['bgp_state']
- def wait_for(self, expected_state, peer, timeout=20):
+ def wait_for(self, expected_state, peer, timeout=120):
state = self.get_neighbor_state(peer)
y = colors.yellow
print y("{0}'s peer {1} state: {2}".format(self.router_id,
@@ -142,6 +142,8 @@ class GoBGPContainer(BGPContainer):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
+ print '[localhost] local:', cmd
+
poll = select.epoll()
poll.register(process.stdout, select.POLLIN)