From b71c2981637df47db7c497cccd690144da52cda8 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Mon, 25 May 2015 15:25:14 +0100 Subject: [PATCH] Changed sleep time to 100ms for unit test (hack) #4651 --- src/test/unittests/ipc/IpcLogOutputterTests.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/unittests/ipc/IpcLogOutputterTests.cpp b/src/test/unittests/ipc/IpcLogOutputterTests.cpp index 254752c4..9233256b 100644 --- a/src/test/unittests/ipc/IpcLogOutputterTests.cpp +++ b/src/test/unittests/ipc/IpcLogOutputterTests.cpp @@ -120,7 +120,9 @@ TEST(IpcLogOutputterTests, write_overBufferRateLimit_lastLineTruncated) // after waiting the time limit send another to make sure // we can log after the time limit passes. - ARCH->sleep(0.01); // 10ms + // HACK: sleep causes the unit test to fail intermittently, + // so lets try 100ms (there must be a better way to solve this) + ARCH->sleep(0.1); // 100ms outputter.write(kNOTE, "mock 3"); outputter.write(kNOTE, "mock 4"); outputter.sendBuffer();