qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [qpid-proton] branch master updated: NO-JIRA: Extend timeout on proton_tests/reactor.py test_schedule_cancel
Date Tue, 05 Feb 2019 19:50:29 GMT
This is an automated email from the ASF dual-hosted git repository.

aconway pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/master by this push:
     new 615a5ee  NO-JIRA: Extend timeout on proton_tests/reactor.py test_schedule_cancel
615a5ee is described below

commit 615a5ee1c5ede5910ca4f50fb9f445d3580fbf07
Author: Alan Conway <aconway@redhat.com>
AuthorDate: Tue Feb 5 14:44:49 2019 -0500

    NO-JIRA: Extend timeout on proton_tests/reactor.py test_schedule_cancel
    
    Avoid false failures on slow CI machines.
---
 python/tests/proton_tests/reactor.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/tests/proton_tests/reactor.py b/python/tests/proton_tests/reactor.py
index e2b4f21..7d6b689 100644
--- a/python/tests/proton_tests/reactor.py
+++ b/python/tests/proton_tests/reactor.py
@@ -229,7 +229,7 @@ class ExceptionTest(Test):
         assert len(Nothing.results) == 0
 
     def test_schedule_cancel(self):
-        barf = self.container.schedule(10, BarfOnTask())
+        barf = self.container.schedule(60, BarfOnTask())
         class CancelBarf:
             def __init__(self, barf):
                 self.barf = barf
@@ -241,7 +241,7 @@ class ExceptionTest(Test):
         try:
             self.container.run()
             elapsed = self.container.mark() - now
-            assert elapsed < 10, "expected cancelled task to not delay the reactor by
%s" % elapsed
+            assert elapsed < 60, "should have cancelled immediately, took %ss" % elapsed
         except Barf:
             assert False, "expected barf to be cancelled"
 


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


Mime
View raw message