tests/virtual-image: Use sleep multiplier when running under valgrind

This commit is contained in:
Marco Trevisan (Treviño)
2025-02-13 18:41:04 +01:00
parent 8433563602
commit b8ed4b5d63

View File

@@ -146,6 +146,9 @@ class VirtualImage(unittest.TestCase):
nonlocal done
done = True
if 'UNDER_VALGRIND' in os.environ:
timeout = timeout * 3
source = GLib.timeout_add(timeout, on_timeout_reached)
while not done:
if self.dev.get_finger_status() & finger_status: