summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/tests/integrated/test_request_reply_v12.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ryu/tests/integrated/test_request_reply_v12.py b/ryu/tests/integrated/test_request_reply_v12.py
index 14aada4a..65f273bc 100644
--- a/ryu/tests/integrated/test_request_reply_v12.py
+++ b/ryu/tests/integrated/test_request_reply_v12.py
@@ -808,8 +808,8 @@ class RunTest(tester.TestFlowBase):
duration_nsec = (msg.duration_sec * 10 ** 9) + msg.duration_nsec
timeout_nsec = timeout * 10 ** 9
- # grace of 1.5 second to timeout.
- l = timeout * 10 ** 9
+ # grace of -0.5 and +1.5 second to timeout.
+ l = (timeout - 0.5) * 10 ** 9
h = (timeout + 1.5) * 10 ** 9
if not l < duration_nsec < h:
return 'bad duration time. set=%s(nsec), duration=%s(nsec)' \