Commit e54f86d0 authored by Benjamin Berg's avatar Benjamin Berg
Browse files

fixup! tests: Add basic integration test

The timeout is a bit too low, increase it
parent d611f805
......@@ -43,10 +43,12 @@ SERVICE_FILE = '/usr/share/dbus-1/system-services/net.reactivated.Fprint.service
def get_timeout(topic='default'):
vals = {
'valgrind': {
'test': 300,
'default': 20,
'daemon_start': 60
},
'default': {
'test': 60,
'default': 3,
'daemon_start': 5
}
......@@ -288,7 +290,7 @@ class FPrintdTest(dbusmock.DBusTestCase):
print("Test timed out, hard exiting")
sys.exit(1)
timeout = GLib.timeout_add(20000, timeout_cb)
timeout = GLib.timeout_add(get_timeout('test') * 1000, timeout_cb)
self._polkitd_obj.SetAllowed(['net.reactivated.fprint.device.setusername',
'net.reactivated.fprint.device.enroll',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment