3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

auto-t: fix testRSSIAgent after signal agent changes

The signal agent notifications were changed which breaks this test.
Specifically commit ce227e7b94 sends a notification when connected
which breaks the 'agent.calls' check. Since this check is done both
after connecting and once already connected the initial value may
be 1 or 0. Because of this that check was removed entirely.
This commit is contained in:
James Prestwood 2022-05-25 12:37:29 -07:00 committed by Denis Kenzior
parent e000eff492
commit 0e77e33a4d

View File

@ -56,7 +56,6 @@ class Test(unittest.TestCase):
# at least) uses a moving-window average value over the last RSSI # at least) uses a moving-window average value over the last RSSI
# measurements received from the driver and it changes gradually. # measurements received from the driver and it changes gradually.
# Normally 1 second is enough. # Normally 1 second is enough.
self.assertEqual(agent.calls, 0)
for centre, level in rssi_pairs: for centre, level in rssi_pairs:
rule.signal = centre rule.signal = centre
agent.level = -1 agent.level = -1