(self)
| 30 | |
| 31 | class AsyncTestCaseTest(AsyncTestCase): |
| 32 | def test_wait_timeout(self): |
| 33 | time = self.io_loop.time |
| 34 | |
| 35 | # Accept default 5-second timeout, no error |
| 36 | self.io_loop.add_timeout(time() + 0.01, self.stop) |
| 37 | self.wait() |
| 38 | |
| 39 | # Timeout passed to wait() |
| 40 | self.io_loop.add_timeout(time() + 1, self.stop) |
| 41 | with self.assertRaises(self.failureException): |
| 42 | self.wait(timeout=0.01) |
| 43 | |
| 44 | # Timeout set with environment variable |
| 45 | self.io_loop.add_timeout(time() + 1, self.stop) |
| 46 | with set_environ("ASYNC_TEST_TIMEOUT", "0.01"): |
| 47 | with self.assertRaises(self.failureException): |
| 48 | self.wait() |
| 49 | |
| 50 | def test_subsequent_wait_calls(self): |
| 51 | """ |
nothing calls this directly
no test coverage detected