提交 3c1b9169 编写于 作者: L Liangliang Zhang 提交者: Jiangtao Hu

Relaxed check range in timer_test.cc.

It is hard to guarantee a fixed sleep time.
上级 dcb2eac7
......@@ -30,7 +30,7 @@ TEST(TimeTest, test_timer) {
timer.Start();
usleep(100000);
uint64_t elapsed_time = timer.End("TimerTest");
EXPECT_TRUE(elapsed_time >= 99 && elapsed_time <= 101);
EXPECT_TRUE(elapsed_time >= 90 && elapsed_time <= 110);
}
TEST(TimerWrapperTest, test) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册