Commit 45e4c474 authored by Jason Madden's avatar Jason Madden

More timer test tweaks.

parent c4d3be2a
from __future__ import print_function from __future__ import print_function
from gevent import config from gevent import config
import greentest
from greentest import TestCase from greentest import TestCase
from greentest import main
from greentest import LARGE_TIMEOUT from greentest import LARGE_TIMEOUT
from greentest.sysinfo import CFFI_BACKEND from greentest.sysinfo import CFFI_BACKEND
...@@ -113,7 +113,7 @@ class TestTimerResolution(Test): ...@@ -113,7 +113,7 @@ class TestTimerResolution(Test):
loop = self.loop loop = self.loop
for _ in range(15): for _ in range(150):
# in libuv, our signal timer fires every 300ms; depending on # in libuv, our signal timer fires every 300ms; depending on
# when this runs, we could artificially get a better # when this runs, we could artificially get a better
# resolution than we expect. Run it multiple times to be more sure. # resolution than we expect. Run it multiple times to be more sure.
...@@ -141,8 +141,11 @@ class TestTimerResolution(Test): ...@@ -141,8 +141,11 @@ class TestTimerResolution(Test):
self.timer_duration * 5) self.timer_duration * 5)
if not greentest.RUNNING_ON_CI:
# Hmm, this always fires locally on mocOS but
# not an Travis?
self.assertTrue(ran_at_least_once) self.assertTrue(ran_at_least_once)
if __name__ == '__main__': if __name__ == '__main__':
main() greentest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment