From fb9f66044396bfd8d1c57cf58d5758afc64965c6 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Thu, 10 Dec 2015 16:28:37 -0800 Subject: [PATCH] fixup; match the comment --- rcl/test/rcl/test_time.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcl/test/rcl/test_time.cpp b/rcl/test/rcl/test_time.cpp index c86b74a..7c259bd 100644 --- a/rcl/test/rcl/test_time.cpp +++ b/rcl/test/rcl/test_time.cpp @@ -72,7 +72,7 @@ TEST_F(TestTimeFixture, test_rcl_system_time_point_now) auto now_ns = std::chrono::duration_cast(now_sc.time_since_epoch()); int64_t now_ns_int = now_ns.count(); int64_t now_diff = now.nanoseconds - now_ns_int; - EXPECT_LE(llabs(now_diff), RCL_MS_TO_NS(100)) << "system_clock differs"; + EXPECT_LE(llabs(now_diff), RCL_MS_TO_NS(1000)) << "system_clock differs"; } } @@ -105,6 +105,6 @@ TEST_F(TestTimeFixture, test_rcl_steady_time_point_now) auto now_ns = std::chrono::duration_cast(now_sc.time_since_epoch()); int64_t now_ns_int = now_ns.count(); int64_t now_diff = now.nanoseconds - now_ns_int; - EXPECT_LE(llabs(now_diff), RCL_MS_TO_NS(100)) << "steady_clock differs"; + EXPECT_LE(llabs(now_diff), RCL_MS_TO_NS(1000)) << "steady_clock differs"; } }