Skip to content

Commit

Permalink
Relax backupable RateLimiter unit test for slow environments
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcanadi committed Mar 24, 2014
1 parent b253f24 commit e6d4b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities/backupable/backupable_db_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ TEST(BackupableDBTest, RateLimiting) {
auto rate_limited_backup_time = (bytes_written * kMicrosPerSec) /
backupable_options_->backup_rate_limit;
ASSERT_GT(backup_time, 0.9 * rate_limited_backup_time);
ASSERT_LT(backup_time, 1.1 * rate_limited_backup_time);
ASSERT_LT(backup_time, 1.3 * rate_limited_backup_time);

CloseBackupableDB();

Expand All @@ -838,7 +838,7 @@ TEST(BackupableDBTest, RateLimiting) {
auto rate_limited_restore_time = (bytes_written * kMicrosPerSec) /
backupable_options_->restore_rate_limit;
ASSERT_GT(restore_time, 0.9 * rate_limited_restore_time);
ASSERT_LT(restore_time, 1.1 * rate_limited_restore_time);
ASSERT_LT(restore_time, 1.3 * rate_limited_restore_time);

AssertBackupConsistency(0, 0, 100000, 100010);
}
Expand Down

0 comments on commit e6d4b00

Please sign in to comment.