From: Ben Darnell Date: Sun, 28 Jun 2020 19:12:29 +0000 (-0400) Subject: test: Use larger time values in testing_test X-Git-Tag: v6.1.0b1~17^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2885%2Fhead;p=thirdparty%2Ftornado.git test: Use larger time values in testing_test This test was flaky on appveyor. Also expand comments about what exactly the test is doing. --- diff --git a/tornado/test/testing_test.py b/tornado/test/testing_test.py index 594d4af2f..e09023003 100644 --- a/tornado/test/testing_test.py +++ b/tornado/test/testing_test.py @@ -51,10 +51,13 @@ class AsyncTestCaseTest(AsyncTestCase): This test makes sure that a second call to wait() clears the first timeout. """ + # The first wait ends with time left on the clock self.io_loop.add_timeout(self.io_loop.time() + 0.00, self.stop) - self.wait(timeout=0.02) - self.io_loop.add_timeout(self.io_loop.time() + 0.03, self.stop) - self.wait(timeout=0.15) + self.wait(timeout=0.1) + # The second wait has enough time for itself but would fail if the + # first wait's deadline were still in effect. + self.io_loop.add_timeout(self.io_loop.time() + 0.2, self.stop) + self.wait(timeout=0.4) class LeakTest(AsyncTestCase):