Skip to content

Commit df68266

Browse files
committed
Correct -update test_stick_network_down()
1 parent 6190f42 commit df68266

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

tests/test_usb.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,10 +1532,7 @@ async def test_stick_network_down(self, monkeypatch: pytest.MonkeyPatch) -> None
15321532
b"0011" # msg_id
15331533
+ b"0123456789012345" # stick mac
15341534
+ b"00" # unknown1
1535-
+ b"00" # network_is_online
1536-
+ b"0098765432101234" # circle_plus_mac
1537-
+ b"4321" # network_id
1538-
+ b"00", # unknown2
1535+
+ b"00", # network_is_offline
15391536
),
15401537
}
15411538
)
@@ -1548,8 +1545,8 @@ async def test_stick_network_down(self, monkeypatch: pytest.MonkeyPatch) -> None
15481545
monkeypatch.setattr(pw_requests, "NODE_TIME_OUT", 1.0)
15491546
stick = pw_stick.Stick(port="test_port", cache_enabled=False)
15501547
await stick.connect()
1551-
with pytest.raises(pw_exceptions.StickError):
1552-
await stick.initialize()
1548+
await stick.initialize()
1549+
assert stick.mac_coordinator is None
15531550
await stick.disconnect()
15541551

15551552
def fake_env(self, env: str) -> str | None:

0 commit comments

Comments
 (0)