Skip to content

Commit 4aada00

Browse files
committed
Adapt test asserts
1 parent 1e09f9a commit 4aada00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_usb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,8 +1977,8 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
19771977
assert await test_sed.set_awake_duration(0)
19781978
with pytest.raises(ValueError):
19791979
assert await test_sed.set_awake_duration(256)
1980-
assert await test_sed.set_awake_duration(10)
1981-
assert test_sed.sed_config_task_scheduled
1980+
assert not await test_sed.set_awake_duration(10)
1981+
assert not test_sed.sed_config_task_scheduled
19821982
assert await test_sed.set_awake_duration(15)
19831983
assert test_sed.sed_config_task_scheduled
19841984
assert test_sed.battery_config.awake_duration == 15

0 commit comments

Comments
 (0)