Skip to content

Commit 33ff79d

Browse files
committed
Test timeout after connect()
1 parent 967d5d5 commit 33ff79d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_init.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ async def connect(
347347
try:
348348
version = await smile.connect()
349349
assert version is not None
350+
assert smile._timeout == 10
350351
return server, smile, client
351352
except (
352353
pw_exceptions.ConnectionFailedError,
@@ -430,6 +431,7 @@ async def connect_legacy(
430431
try:
431432
version = await smile.connect()
432433
assert version is not None
434+
assert smile._timeout == 30
433435
return server, smile, client
434436
except (
435437
pw_exceptions.ConnectionFailedError,

0 commit comments

Comments
 (0)