From c7d6bcbdda183943df89c42fd7e6b10423e790cd Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Tue, 18 Mar 2014 13:30:24 +0400 Subject: [PATCH] Tests: reduced timestamp comparison precision to reduce test failure probability with parallel build --- libuavcan/test/clock.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuavcan/test/clock.hpp b/libuavcan/test/clock.hpp index cddcd2e434..8cafe9545e 100644 --- a/libuavcan/test/clock.hpp +++ b/libuavcan/test/clock.hpp @@ -88,7 +88,7 @@ inline uavcan::UtcTime tsUtc(uint64_t usec) { return uavcan::UtcTime::fromUSec(u inline uavcan::MonotonicDuration durMono(int64_t usec) { return uavcan::MonotonicDuration::fromUSec(usec); } template -static bool areTimestampsClose(const T& a, const T& b, int64_t precision_usec = 10000) +static bool areTimestampsClose(const T& a, const T& b, int64_t precision_usec = 100000) { return (a - b).getAbs().toUSec() < precision_usec; }