Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/asynchronous/unified_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
)
from test.utils import (
async_get_pool,
async_wait_until,
camel_to_snake,
camel_to_snake_args,
parse_spec_options,
Expand Down Expand Up @@ -1144,13 +1145,13 @@ def _testOperation_assertEventCount(self, spec):
client, event, count = spec["client"], spec["event"], spec["count"]
self.assertEqual(self._event_count(client, event), count, f"expected {count} not {event!r}")

def _testOperation_waitForEvent(self, spec):
async def _testOperation_waitForEvent(self, spec):
"""Run the waitForEvent test operation.

Wait for a number of events to be published, or fail.
"""
client, event, count = spec["client"], spec["event"], spec["count"]
wait_until(
await async_wait_until(
lambda: self._event_count(client, event) >= count,
f"find {count} {event} event(s)",
)
Expand Down
Loading