From e6d4b006b69a7eef770f8d60fa261693944dd403 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Mon, 24 Mar 2014 11:59:42 -0700 Subject: [PATCH] Relax backupable RateLimiter unit test for slow environments --- 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 88c4af0d36..62717f5dc1 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.1 * rate_limited_backup_time); + ASSERT_LT(backup_time, 1.3 * 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.1 * rate_limited_restore_time); + ASSERT_LT(restore_time, 1.3 * rate_limited_restore_time); AssertBackupConsistency(0, 0, 100000, 100010); }