Skip to content

Commit 44678e8

Browse files
committed
Fix relevant test-code
1 parent fd836e9 commit 44678e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_init.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ async def connect(
322322
username=pw_constants.DEFAULT_USERNAME,
323323
password=test_password,
324324
port=server.port,
325+
timeout=pw_constants.DEFAULT_TIMEOUT,
325326
websession=None,
326327
)
327328
lack_of_websession = False
@@ -335,11 +336,12 @@ async def connect(
335336
username=pw_constants.DEFAULT_USERNAME,
336337
password=test_password,
337338
port=server.port,
339+
timeout=pw_constants.DEFAULT_TIMEOUT,
338340
websession=websession,
339341
)
340342

341343
if not timeout:
342-
assert smile._timeout == 30
344+
assert smile._timeout == 10
343345

344346
# Connect to the smile
345347
try:
@@ -403,6 +405,7 @@ async def connect_legacy(
403405
username=pw_constants.DEFAULT_USERNAME,
404406
password=test_password,
405407
port=server.port,
408+
timeout=pw_constants.DEFAULT_LEGACY_TIMEOUT,
406409
websession=None,
407410
)
408411
lack_of_websession = False
@@ -416,6 +419,7 @@ async def connect_legacy(
416419
username=pw_constants.DEFAULT_USERNAME,
417420
password=test_password,
418421
port=server.port,
422+
timeout=pw_constants.DEFAULT_LEGACY_TIMEOUT,
419423
websession=websession,
420424
)
421425

0 commit comments

Comments
 (0)