summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2013-08-12 10:38:03 +0200
committerJonny Lamb <jonny.lamb@collabora.co.uk>2013-08-12 10:38:39 +0200
commit1c52b4b22515bc40ac506d411a39abe916dfc077 (patch)
tree9e4b0013966ec14aca3bc83fc9c49b43d979375f
parent129b3d24b08b647f8f994232a70e5a99a17b76d0 (diff)
test: add 2 second mainloop timeout to allow clearing buffersHEADring
-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'