Retry transient Windows wireless smoke timeout once

This commit is contained in:
SAPHID committed 2026-10-26 07:45:31 +00:00
1 parent 4ac59f1a44
commit 42492e7879
1 file changed
+6
+6
View File
@@ -192,6 +192,12 @@ class Probe(unittest.TestCase):
@unittest.skipUnless(wireless.frame_host.WINDOWS, 'Live read-only Windows inventory runs on Windows CI')
def test_live_windows_inventory(self):
r = wireless.diagnose()
# Shared Windows runners can spend the entire probe budget starting
# PowerShell. Retry only that transient timeout; a second failure must
# still fail this live inventory gate.
if (r['state'] == 'unavailable' and
r.get('message') == 'Windows wireless inventory timed out. No settings were changed.'):
r = wireless.diagnose()
self.assertIn(r['state'], ('ok', 'partial'), r)
self.assertEqual(r['sources']['adapters'], 'ok', r['sources'])
self.assertTrue(r['devices'], 'Windows runner should expose at least its virtual network interface')