summaryrefslogtreecommitdiff
path: root/waitress
diff options
context:
space:
mode:
Diffstat (limited to 'waitress')
-rw-r--r--waitress/tests/test_task.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/waitress/tests/test_task.py b/waitress/tests/test_task.py
index fa828e9..4dc3af0 100644
--- a/waitress/tests/test_task.py
+++ b/waitress/tests/test_task.py
@@ -68,8 +68,10 @@ class TestThreadedTaskDispatcher(unittest.TestCase):
def test_log_queue_depth(self):
task = DummyTask()
inst = self._makeOne()
- inst.add_task(task)
inst.logger = DummyLogger()
+ inst.add_task(task)
+ self.assertEqual(len(inst.logger.logged), 0)
+ inst.add_task(task)
self.assertEqual(len(inst.logger.logged), 1)
def test_add_task_defer_raises(self):