From acdc6a1a0dfb89235b2212b53ceb3683313a3a78 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Fri, 4 Apr 2014 16:27:47 -0700 Subject: [PATCH] relax backupable db rate limit tests --- utilities/backupable/backupable_db_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities/backupable/backupable_db_test.cc b/utilities/backupable/backupable_db_test.cc index 5a0b6928b..6b10c9413 100644 --- a/utilities/backupable/backupable_db_test.cc +++ b/utilities/backupable/backupable_db_test.cc @@ -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.5 * rate_limited_backup_time); + ASSERT_LT(backup_time, 2.5 * rate_limited_backup_time); CloseBackupableDB(); @@ -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.5 * rate_limited_restore_time); + ASSERT_LT(restore_time, 2.5 * rate_limited_restore_time); AssertBackupConsistency(0, 0, 100000, 100010); }