diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-02-23 18:36:41 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-02-23 18:54:14 +0100 |
commit | 530fe984422321982e1d28aa37d945f87e7f6060 (patch) | |
tree | 78eaa5006ef07611e2ea8ae49fd51528425e54e3 /tests | |
parent | 748dbb53b6768f94deebd8d13a9fe4fedbb20c13 (diff) | |
download | gnome-bluetooth-530fe984422321982e1d28aa37d945f87e7f6060.tar.gz |
tests: Fix wait_for_condition() AGAIN 😩
Fixes: 49799919f1078d1bb1d8bddede552e9f1806c321
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/integration-test.py | 4 |
1 files 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 |