From 0e77e33a4d12a6ab54ab8ed5787734c01d59c2f4 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 25 May 2022 12:37:29 -0700 Subject: [PATCH] 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. --- 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