From 72f0f05096cea0695a6b65c8c911c43b89b791c0 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 16 Nov 2026 17:54:32 +0100 Subject: fix(xbox): follow a power change quickly --- tests/test_xbox.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test_xbox.py') diff --git a/tests/test_xbox.py b/tests/test_xbox.py index d37423e..0bcc883 100644 --- a/tests/test_xbox.py +++ b/tests/test_xbox.py @@ -410,6 +410,13 @@ class Commands(Base): with self.assertRaises(xb.ModuleError): x.command("wake", {"console": "OTHER"}) + def test_a_command_reads_quickly_for_a_while(self): + x = self.xbox() + x.tick() + self.assertEqual(x.next_read(), xb.FAST) + x.command("off", {"console": "CON1"}) + self.assertEqual(x.next_read(), xb.QUICK) + def test_an_unreachable_console_says_what_to_do(self): self.fake.answers["/commands"] = {"status": {"errorCode": "ErrorCallingWNS", "errorMessage": "Send command failed"}} x = self.xbox() -- cgit v1.2.3