Skip to content

Commit d7d69f8

Browse files
committed
Update related test-code
1 parent 3ec47c3 commit d7d69f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_init.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ async def connect(
345345

346346
# Connect to the smile
347347
try:
348-
connection_state = await smile.connect()
349-
assert connection_state
348+
version = await smile.connect()
349+
assert version != pw_constants.NONE
350350
return server, smile, client
351351
except (
352352
pw_exceptions.ConnectionFailedError,
@@ -428,8 +428,8 @@ async def connect_legacy(
428428

429429
# Connect to the smile
430430
try:
431-
connection_state = await smile.connect()
432-
assert connection_state
431+
version = await smile.connect()
432+
assert version != pw_constants.NONE
433433
return server, smile, client
434434
except (
435435
pw_exceptions.ConnectionFailedError,

0 commit comments

Comments
 (0)