Merge into master from pull request #180:
tests: add sleep after flow timeouts (https://github.com/floodlight/oftest/pull/180)
diff --git a/tests/detailed_contr_sw_messages.py b/tests/detailed_contr_sw_messages.py
index a32251d..824692f 100644
--- a/tests/detailed_contr_sw_messages.py
+++ b/tests/detailed_contr_sw_messages.py
@@ -628,6 +628,8 @@
self.assertEqual(1, response.duration_sec,
'Flow was not alive for 1 sec')
+ sleep(1)
+
class Outport2(base_tests.SimpleDataPlane):
@@ -710,6 +712,8 @@
self.assertEqual(1, response.duration_sec,
'Flow was not alive for 1 sec')
+ sleep(1)
+
class FlowTimeout(base_tests.SimpleDataPlane):
@@ -761,6 +765,8 @@
# Verify no entries in the table
verify_tablestats(self,expect_active=0)
+ sleep(1)
+
diff --git a/tests/flow_expire.py b/tests/flow_expire.py
index 0467e4b..ccbad20 100644
--- a/tests/flow_expire.py
+++ b/tests/flow_expire.py
@@ -83,3 +83,4 @@
self.assertEqual(match, response.match,
'Flow table entry does not match')
+ sleep(1)