From 91202ce50dd9594d82fcf8125d80e7c39198013a Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 28 Jun 2020 15:12:29 -0400 Subject: [PATCH] test: Use larger time values in testing_test This test was flaky on appveyor. Also expand comments about what exactly the test is doing. --- tornado/test/testing_test.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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): -- 2.47.2