@@ -323,7 +323,6 @@ async def connect(
323323 username = pw_constants .DEFAULT_USERNAME ,
324324 password = test_password ,
325325 port = server .port ,
326- timeout = pw_constants .DEFAULT_TIMEOUT ,
327326 websession = None ,
328327 )
329328 lack_of_websession = False
@@ -337,18 +336,18 @@ async def connect(
337336 username = pw_constants .DEFAULT_USERNAME ,
338337 password = test_password ,
339338 port = server .port ,
340- timeout = pw_constants .DEFAULT_TIMEOUT ,
341339 websession = websession ,
342340 )
343341
344342 if not timeout :
345- assert smile ._timeout == 10
343+ assert smile ._timeout == 30
346344
347345 # Connect to the smile
348346 version = None
349347 try :
350348 version = await smile .connect ()
351349 assert version is not None
350+ assert smile ._timeout == 10
352351 return server , smile , client
353352 except (
354353 pw_exceptions .ConnectionFailedError ,
@@ -408,7 +407,6 @@ async def connect_legacy(
408407 username = pw_constants .DEFAULT_USERNAME ,
409408 password = test_password ,
410409 port = server .port ,
411- timeout = pw_constants .DEFAULT_LEGACY_TIMEOUT ,
412410 websession = None ,
413411 )
414412 lack_of_websession = False
@@ -422,7 +420,6 @@ async def connect_legacy(
422420 username = pw_constants .DEFAULT_USERNAME ,
423421 password = test_password ,
424422 port = server .port ,
425- timeout = pw_constants .DEFAULT_LEGACY_TIMEOUT ,
426423 websession = websession ,
427424 )
428425
@@ -434,6 +431,7 @@ async def connect_legacy(
434431 try :
435432 version = await smile .connect ()
436433 assert version is not None
434+ assert smile ._timeout == 30
437435 return server , smile , client
438436 except (
439437 pw_exceptions .ConnectionFailedError ,
0 commit comments