Skip to content

Commit

Permalink
test(windows): try to fix raise condition on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jan 5, 2025
1 parent ca4814b commit 24804d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ async def test_client_connection():
url = f"ws://localhost:{server.port}/ws"
client = get_client(url)
asynchronous.create_task(client.connect(secret="wslink-secret"))
await asyncio.sleep(0.1)

for i in range(10):
if client.connected == 2:
break
await asyncio.sleep(0.1)

# should be a noop
await client.connect()

assert client.connected == 2

@client.change("a")
Expand Down

0 comments on commit 24804d6

Please sign in to comment.