Skip to content

Commit

Permalink
test: Make timing of ConnectedExchangeVariableTest.test_two_exchange_…
Browse files Browse the repository at this point in the history
…concurrent_update() more robust

... for the case, multiple subsequent update collisions happen.
  • Loading branch information
mhthies committed Nov 20, 2023
1 parent 619b1d8 commit 98f3b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ async def test_two_exchange_concurrent_update(self) -> None:
exchange2.subscribe(var1)

await asyncio.gather(var1.write(42, []), var2.write(56, []))
await asyncio.sleep(0.1)
await asyncio.sleep(0.3)
self.assertEqual(await var1.read(), await var2.read())

@async_test
Expand Down

0 comments on commit 98f3b9c

Please sign in to comment.