All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5/5] auto-t: fix testRSSIAgent after signal agent changes
@ 2022-05-25 19:23 James Prestwood
  0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2022-05-25 19:23 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]

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.
---
 autotests/testRSSIAgent/connection_test.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/autotests/testRSSIAgent/connection_test.py b/autotests/testRSSIAgent/connection_test.py
index 160a17b3..4ffa3d2c 100644
--- a/autotests/testRSSIAgent/connection_test.py
+++ b/autotests/testRSSIAgent/connection_test.py
@@ -56,7 +56,6 @@ class Test(unittest.TestCase):
             # at least) uses a moving-window average value over the last RSSI
             # measurements received from the driver and it changes gradually.
             # Normally 1 second is enough.
-            self.assertEqual(agent.calls, 0)
             for centre, level in rssi_pairs:
                 rule.signal = centre
                 agent.level = -1
-- 
2.34.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-25 19:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-25 19:23 [PATCH 5/5] auto-t: fix testRSSIAgent after signal agent changes James Prestwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.