[gnome-bluetooth/wip/hadess/fix-shell-menu: 1/4] tests: Fix wait_for_condition() AGAIN 😩




commit f03fff65bbd09e9c08ac29c7bd0a76fc7170746e
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Feb 23 18:36:41 2022 +0100

    tests: Fix wait_for_condition() AGAIN 😩
    
    Fixes: 49799919f1078d1bb1d8bddede552e9f1806c321

 tests/integration-test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/integration-test.py b/tests/integration-test.py
index 3fa5f703..4c780fa5 100755
--- a/tests/integration-test.py
+++ b/tests/integration-test.py
@@ -83,9 +83,9 @@ class OopTests(dbusmock.DBusTestCase):
         interval = 100
         timed_out = False
         def timeout_cb():
-            nonlocal timed_out, interval, timeout
+            nonlocal timed_out, interval, remaining
             remaining = remaining - interval
-            if timeout <= 0:
+            if remaining <= 0:
                 timed_out = True
                 return False
             return True


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]