From 9cd4664a1c3a7148ab3de209bf13974246e7e12e Mon Sep 17 00:00:00 2001 From: Pastukhov Nikita Date: Sun, 4 Aug 2024 15:36:59 +0300 Subject: [PATCH] tests: use timeout (#1637) --- tests/brokers/base/testclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/brokers/base/testclient.py b/tests/brokers/base/testclient.py index 9c454ce3cd..b0335d0741 100644 --- a/tests/brokers/base/testclient.py +++ b/tests/brokers/base/testclient.py @@ -126,10 +126,10 @@ async def m(msg): async with self.test_class(test_broker, with_real=True) as br: await br.publish("hello", queue) - await m.wait_call(3.0) + await m.wait_call(self.timeout) m.mock.assert_called_once_with("hello") - with anyio.fail_after(3.0): + with anyio.fail_after(self.timeout): while not publisher.mock.called: await asyncio.sleep(0.1) publisher.mock.assert_called_once_with("response: hello")