Skip to content

Commit

Permalink
Increase time allowed for backup in test_store_error_reporting
Browse files Browse the repository at this point in the history
Should increase reliability of tests running on Travis.
  • Loading branch information
qris committed Jan 8, 2018
1 parent 025e032 commit 018f84e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/bbackupd/testbbackupd.cpp
Expand Up @@ -2707,8 +2707,10 @@ bool test_store_error_reporting()
// Should not have backed up, should still get errors
TEST_COMPARE(Compare_Different);

// wait another 2 seconds, bbackup should have run
wait_for_operation(2, "bbackupd to recover");
// Wait another 4 seconds, bbackup should have run. Ideally 2 seconds would be
// enough, and it usually is, but sometimes Travis is heavily loaded and the backup
// takes ~4 seconds to run!
wait_for_operation(4, "bbackupd to recover");
TEST_THAT(TestFileExists("testfiles/"
"notifyran.backup-start.wait-snapshot.1"));

Expand Down Expand Up @@ -2782,8 +2784,8 @@ bool test_store_error_reporting()
// Should not have backed up, should still get errors
TEST_COMPARE(Compare_Different);

// wait another 3 seconds, bbackup should have run
wait_for_operation(3, "bbackupd to recover");
// wait another 4 seconds, bbackup should have run
wait_for_operation(4, "bbackupd to recover");
TEST_THAT(TestFileExists("testfiles/"
"notifyran.backup-start.wait-automatic.1"));

Expand Down

0 comments on commit 018f84e

Please sign in to comment.