From 0cf4e6bc91c26d469873485a6a24f26f0fe76f4a Mon Sep 17 00:00:00 2001 From: Danny Guinther Date: Thu, 15 Aug 2024 14:15:42 -0400 Subject: [PATCH] Adjust some test logic --- reqless_test/test_events.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reqless_test/test_events.py b/reqless_test/test_events.py index b8f1406..6a6f711 100644 --- a/reqless_test/test_events.py +++ b/reqless_test/test_events.py @@ -27,9 +27,14 @@ def func(event: Dict) -> None: count += 1 self.client.events.on("popped", func) + print("pre thread", flush=True) with self.client.events.thread(): + print("pre pop", flush=True) self.client.queues["foo"].pop() + print("post pop", flush=True) + print("post thread", flush=True) self.assertEqual(count, 1) + print("post assert", flush=True) def test_off(self) -> None: """Ensure we can turn off callbacks"""