Skip to content

Commit 3779c49

Browse files
committed
Fixed flacky test.
1 parent 5128362 commit 3779c49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tests/test_callback_subscription.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async def callback(msg: object) -> None:
3131
await nats.publish(subj, b"msg-1")
3232
await nats.publish(subj, b"msg-2")
3333
await asyncio.wait_for(event.wait(), timeout=5.0)
34-
assert received == [b"msg-1", b"msg-2"]
34+
assert set(received) == {b"msg-1", b"msg-2"}
3535

3636

3737
async def test_callback_drain(nats_url: str) -> None:

0 commit comments

Comments
 (0)