mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2026-03-15 04:57:58 +01:00
auto-t: fix two issues with testAPRoam
One of the tests expects a roam to a certain BSS, but there's an extra hostapd instance (use by another test) making it random which BSS IWD roams to. This hostapd instance has been disabled for this test. The second issue was waiting for the no-roam-candidates event. The default wait is 10 seconds, which can sometimes take longer since IWD will perform a full scan after a roam scan. Increase this timeout to 20 seconds to guard against that.
This commit is contained in:
parent
c346f2b88d
commit
92a60ad23d
@ -40,7 +40,7 @@ class Test(unittest.TestCase):
|
|||||||
|
|
||||||
to_bss.wait_for_event('AP-STA-CONNECTED %s' % self.device.address)
|
to_bss.wait_for_event('AP-STA-CONNECTED %s' % self.device.address)
|
||||||
else:
|
else:
|
||||||
self.device.wait_for_event("no-roam-candidates")
|
self.device.wait_for_event("no-roam-candidates", timeout=20)
|
||||||
|
|
||||||
def test_disassoc_imminent(self):
|
def test_disassoc_imminent(self):
|
||||||
self.initial_connection()
|
self.initial_connection()
|
||||||
@ -76,6 +76,8 @@ class Test(unittest.TestCase):
|
|||||||
(cls.bss_hostapd[1].bssid, "8f0000005102060603000000"),
|
(cls.bss_hostapd[1].bssid, "8f0000005102060603000000"),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
cls.bss_hostapd[2].disable()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
IWD.clear_storage()
|
IWD.clear_storage()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user