Skip to content

Commit

Permalink
Relax backupable rate limiting test
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcanadi committed Sep 4, 2014
1 parent f7f973d commit a481626
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 @@ -916,7 +916,7 @@ TEST(BackupableDBTest, RateLimiting) {
auto backup_time = env_->NowMicros() - start_backup;
auto rate_limited_backup_time = (bytes_written * kMicrosPerSec) /
backupable_options_->backup_rate_limit;
ASSERT_GT(backup_time, 0.9 * rate_limited_backup_time);
ASSERT_GT(backup_time, 0.8 * rate_limited_backup_time);

CloseBackupableDB();

Expand All @@ -927,7 +927,7 @@ TEST(BackupableDBTest, RateLimiting) {
CloseRestoreDB();
auto rate_limited_restore_time = (bytes_written * kMicrosPerSec) /
backupable_options_->restore_rate_limit;
ASSERT_GT(restore_time, 0.9 * rate_limited_restore_time);
ASSERT_GT(restore_time, 0.8 * rate_limited_restore_time);

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

0 comments on commit a481626

Please sign in to comment.