D-Bus testing: fix glib timeout duration

The actual timeout duration was too small by a factor of 1000 (ms
versus s mismatch). Did not affect existing tests which just had their
(anyway small) timeouts triggered too soon.
This commit is contained in:
Patrick Ohly 2014-01-16 14:02:41 +01:00
parent ac1887741f
commit 1ae7603a34
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ class Timeout:
DBusUtil.quit_events before calling loop.quit() caused
a KeyboardInterrupt"""
if glib and use_glib:
return glib.timeout_add(delay_seconds, callback)
return glib.timeout_add(delay_seconds * 1000, callback)
else:
now = time.time()
if cls.debugTimeout: