diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-11-04 03:24:58 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-11-04 03:24:58 +0000 |
commit | 36f729674f03d2d5c3c21d64ab5a0fe754e30c83 (patch) | |
tree | 7aad88e34b5dcf70933fc67ab9a2be044d8f5e41 /test | |
parent | 44b4c618d2506c861503bc1f6b4e0842339e051a (diff) |
Explicitly wait for sync to finish instead of assuming that 14 seconds
is enough time.
Diffstat (limited to 'test')
-rw-r--r-- | test/backupstorefix/testbackupstorefix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/backupstorefix/testbackupstorefix.cpp b/test/backupstorefix/testbackupstorefix.cpp index 97ff70f3..b4504541 100644 --- a/test/backupstorefix/testbackupstorefix.cpp +++ b/test/backupstorefix/testbackupstorefix.cpp @@ -316,11 +316,11 @@ int test(int argc, const char *argv[]) if(bbackupd_pid > 0) { - ::sleep(1); + ::safe_sleep(1); TEST_THAT(ServerIsAlive(bbackupd_pid)); // Create a nice store directory - wait_for_operation(14); + ::sync_and_wait(); // That'll do nicely, stop the server #ifdef WIN32 |