aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/Controllers/ONOS/Sfc
diff options
context:
space:
mode:
authorwuwenbin2 <wuwenbin2@huawei.com>2016-07-19 19:50:03 +0800
committerwuwenbin2 <wuwenbin2@huawei.com>2016-07-19 19:56:49 +0800
commite1b54d27342edb88879fb1d32def49abb603a32a (patch)
tree818ef4cdfd69ce21ef12933a4d3227de4f7564fe /testcases/Controllers/ONOS/Sfc
parent31e30777a3bf32d4d081d019338ee65906ffc2ca (diff)
Extend timeout to check vm in onos-sfc testcase
Change-Id: I68ae154391d8098cab3d3cb05cebe6f1922ca701 Signed-off-by: wuwenbin2 <wuwenbin2@huawei.com>
Diffstat (limited to 'testcases/Controllers/ONOS/Sfc')
-rw-r--r--testcases/Controllers/ONOS/Sfc/Sfc_fun.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testcases/Controllers/ONOS/Sfc/Sfc_fun.py b/testcases/Controllers/ONOS/Sfc/Sfc_fun.py
index b386ddbc6..28d83bbfd 100644
--- a/testcases/Controllers/ONOS/Sfc/Sfc_fun.py
+++ b/testcases/Controllers/ONOS/Sfc/Sfc_fun.py
@@ -621,7 +621,7 @@ class Sfc_fun:
self.logger.info("\tPacket not received in Instance")
queue1.put("0")
- def ping(ip, timeout=120):
+ def ping(ip, timeout=300):
while True:
time.sleep(1)
self.logger.debug("Pinging %s. Waiting for response..." % ip)
@@ -638,7 +638,7 @@ class Sfc_fun:
result0 = ping(self.vm_public_ip[0])
result1 = ping(self.vm_public_ip[1])
if result0 == 0 and result1 == 0:
- time.sleep(120)
+ time.sleep(300)
queue1 = Queue()
p1 = Process(target=vm1, args=(queue1, ))
p1.start()