Skip to content

Commit

Permalink
tests: use timeout (#1637)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik authored Aug 4, 2024
1 parent d705076 commit 9cd4664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/brokers/base/testclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 9cd4664

Please sign in to comment.