Relax tolerance of now test because timing affected by OS scheduling (#533)
This commit is contained in:
parent
6b34bcc94c
commit
e409e44413
1 changed files with 1 additions and 1 deletions
|
@ -111,5 +111,5 @@ TEST_F(TestNode, now) {
|
|||
auto now_builtin = node->now().nanoseconds();
|
||||
auto now_external = clock->now().nanoseconds();
|
||||
EXPECT_GE(now_external, now_builtin);
|
||||
EXPECT_LT(now_external - now_builtin, 50000L);
|
||||
EXPECT_LT(now_external - now_builtin, 5000000L);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue