Skip to content

Commit 49c12bf

Browse files
committed
Adapt related test-assert
1 parent 6e716e1 commit 49c12bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_usb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,8 +802,7 @@ async def test_node_relay_and_power(self, monkeypatch: pytest.MonkeyPatch) -> No
802802
# Test blocked async switching due to relay-lock active
803803
await stick.nodes["0098765432101234"].set_relay_lock(True)
804804
assert stick.nodes["0098765432101234"].relay_lock.state
805-
with pytest.raises(pw_exceptions.NodeError):
806-
await stick.nodes["0098765432101234"].set_relay(True)
805+
assert not await stick.nodes["0098765432101234"].set_relay(True)
807806
assert not stick.nodes["0098765432101234"].relay
808807
# Make sure to turn lock off for further testing
809808
await stick.nodes["0098765432101234"].set_relay_lock(False)

0 commit comments

Comments
 (0)