[Pkg-bitcoin-commits] [python-quamash] 127/269: Increase timeout in test, to avoid false negatives

Jonas Smedegaard dr at jones.dk
Fri Nov 24 11:26:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository python-quamash.

commit 9c05f07934ce132b9b392c5ee22d14217a2c1f45
Author: Arve Knudsen <arve.knudsen at gmail.com>
Date:   Mon Sep 29 16:32:12 2014 +0200

    Increase timeout in test, to avoid false negatives
---
 tests/test_qeventloop.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/test_qeventloop.py b/tests/test_qeventloop.py
index d2d3df8..4226c23 100644
--- a/tests/test_qeventloop.py
+++ b/tests/test_qeventloop.py
@@ -78,6 +78,7 @@ class TestCanRunTasksInExecutor:
 		logging.debug('running until complete')
 		loop.run_until_complete(self.blocking_task(loop, executor, was_invoked))
 		logging.debug('ran')
+
 		assert was_invoked.value == 1
 
 	def blocking_func(self, was_invoked):
@@ -89,7 +90,7 @@ class TestCanRunTasksInExecutor:
 	def blocking_task(self, loop, executor, was_invoked):
 		logging.debug('start blocking task()')
 		fut = loop.run_in_executor(executor, self.blocking_func, was_invoked)
-		yield from asyncio.wait_for(fut, timeout=1.0)
+		yield from asyncio.wait_for(fut, timeout=5.0)
 		logging.debug('start blocking task()')
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/python-quamash.git



More information about the Pkg-bitcoin-commits mailing list