Relax tolerance of now test because timing affected by OS scheduling (#533)

This commit is contained in:
dhood 2018-08-17 10:03:45 -07:00 committed by GitHub
parent 6b34bcc94c
commit e409e44413
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}