chiark / gitweb /
exercise the C client a bit from tests
[disorder] / tests / dbversion.py
index 78788b1..4fcdbd2 100755 (executable)
@@ -28,14 +28,12 @@ def test():
     dtest.copyfile(config, configsave)
     open(config, "a").write("dbversion 1\n")
     dtest.start_daemon()
-    time.sleep(2)
     dtest.stop_daemon()
     # Revert to default configuration
     dtest.copyfile(configsave, config)
     print "Testing daemon manages to upgrade..."
     dtest.start_daemon()
-    time.sleep(4)
-    assert dtest.check_files() == 0
+    assert dtest.check_files() == 0, "dtest.check_files"
 
 if __name__ == '__main__':
     dtest.run()