summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-11-21 23:00:10 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-11-21 23:00:10 +0100
commit9060f9089e88ab0dfffa85b1c6c95051cc235561 (patch)
treebec635d7fae571838ed87c1feb3e1df90a50f975
parente54c54fe42121c2718e182cd361cc815d5c93523 (diff)
downloadaioeventlet-9060f9089e88ab0dfffa85b1c6c95051cc235561.tar.gz
debug
-rw-r--r--aiogreen.py1
-rw-r--r--tests/test_timer.py6
2 files changed, 4 insertions, 3 deletions
diff --git a/aiogreen.py b/aiogreen.py
index 6ff2b01..d3be7e7 100644
--- a/aiogreen.py
+++ b/aiogreen.py
@@ -228,6 +228,7 @@ class EventLoop(asyncio.SelectorEventLoop):
# Detect blocking eventlet functions. The feature is implemented with
# signal.alarm() which is is not available on Windows.
self._hub.debug_blocking = debug and (sys.platform != 'win32')
+ self._hub.debug_blocking_resolution = 0.1
def time(self):
return self._hub.clock()
diff --git a/tests/test_timer.py b/tests/test_timer.py
index fbb492b..4d8d501 100644
--- a/tests/test_timer.py
+++ b/tests/test_timer.py
@@ -31,9 +31,9 @@ class TimerTests(tests.TestCase):
result.append("World")
loop.stop()
- self.loop.call_later(0.050, hello)
- self.loop.call_later(0.100, self.loop.stop)
- self.loop.call_later(0.150, world, self.loop)
+ self.loop.call_later(0.5, hello)
+ self.loop.call_later(1.0, self.loop.stop)
+ self.loop.call_later(1.5, world, self.loop)
self.loop.run_forever()
eventlet.sleep(0.200)