summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test.py b/src/test.py
index dd32478..f12fd22 100644
--- a/src/test.py
+++ b/src/test.py
@@ -40,12 +40,13 @@ class TestCase:
raise AssertionError('value was None')
def done(self, success=True):
- self.loop.quit()
if not success:
print '%s Test: FAILED' % self.name
else:
print '%s Test: PASS' % self.name
+ GLib.timeout_add_seconds(2, self.loop.quit)
+
def bite(self):
# Bitten by the watchdog
print 'Timeout hit'