integration-test: Fix start_daemon() for restarts
authorMartin Pitt <martinpitt@gnome.org>
Fri, 7 Sep 2012 06:47:08 +0000 (08:47 +0200)
committerMartin Pitt <martinpitt@gnome.org>
Fri, 7 Sep 2012 06:47:08 +0000 (08:47 +0200)
klass.manager is already initialized when we are restarting; ensure we properly
wait for the daemon to start up.

src/tests/integration-test

index 517b4bf..1046a67 100755 (executable)
@@ -163,6 +163,7 @@ class UDisksTestCase(unittest.TestCase):
 
         # wait until the daemon has started up
         timeout = 10
+        klass.manager = None
         while klass.manager is None and timeout > 0:
             time.sleep(0.2)
             klass.client = UDisks.Client.new_sync(None)