qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [4/6] qpid-proton git commit: NO-JIRA: Fix unreliable timeout test in engine.py
Date Mon, 27 Feb 2017 18:04:52 GMT
NO-JIRA: Fix unreliable timeout test in engine.py


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/a6b41641
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/a6b41641
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/a6b41641

Branch: refs/heads/master
Commit: a6b416411e2e87334e61fb9cbfe3d9840fef2c4a
Parents: 8558520
Author: Alan Conway <aconway@redhat.com>
Authored: Fri Feb 24 01:48:44 2017 -0500
Committer: Alan Conway <aconway@redhat.com>
Committed: Mon Feb 27 11:33:13 2017 -0500

----------------------------------------------------------------------
 tests/python/proton_tests/engine.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/a6b41641/tests/python/proton_tests/engine.py
----------------------------------------------------------------------
diff --git a/tests/python/proton_tests/engine.py b/tests/python/proton_tests/engine.py
index 05e9f8f..7bb5f78 100644
--- a/tests/python/proton_tests/engine.py
+++ b/tests/python/proton_tests/engine.py
@@ -2603,9 +2603,9 @@ class IdleTimeoutEventTest(PeerTest):
     self.transport.idle_timeout = self.delay
     self.connection.open()
     self.half_pump()
-    self.transport.tick(time())
-    sleep(self.delay*2)
-    self.transport.tick(time())
+    t = time()
+    self.transport.tick(t)
+    self.transport.tick(t + self.delay*4)
     self.expect(Event.CONNECTION_INIT, Event.CONNECTION_BOUND,
                 Event.CONNECTION_LOCAL_OPEN, Event.TRANSPORT,
                 Event.TRANSPORT_ERROR, Event.TRANSPORT_TAIL_CLOSED)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message