Browse Source

[3863] #3863 patch

Francis Dupont 10 years ago
parent
commit
6b2b65c51e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/asiolink/tests/interval_timer_unittest.cc

+ 2 - 1
src/lib/asiolink/tests/interval_timer_unittest.cc

@@ -191,7 +191,8 @@ TEST_F(IntervalTimerTest, startIntervalTimer) {
     // Expect TimerCallBack is called; timer_called_ is true
     EXPECT_TRUE(timer_called_);
     // Expect test_runtime is 100 milliseconds or longer.
-    EXPECT_TRUE(test_runtime > boost::posix_time::milliseconds(100)) <<
+    // Allow 1% of clock skew
+    EXPECT_TRUE(test_runtime >= boost::posix_time::milliseconds(99)) <<
                 "test runtime " << test_runtime.total_milliseconds() <<
                 "msec " << ">= 100";
 }