From 5116ddbd57306f603db7045de46d80f50072877d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sat, 2 Nov 2019 15:41:31 +0100 Subject: [PATCH] Be more tolerant w.r.t. timing for macOS test due to CI VM timing issues. --- tests/std.concurrency.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/std.concurrency.d b/tests/std.concurrency.d index b7a7a55..f310a9a 100644 --- a/tests/std.concurrency.d +++ b/tests/std.concurrency.d @@ -47,7 +47,9 @@ void main() catch (Exception e) assert(false, "Receiver thread failed: "~e.msg); logInfo("Receive loop finished."); - if (wc < 6*4-1) { + version (OSX) enum tolerance = 4; // macOS CI VMs have particularly bad timing behavior + else enum tolerance = 1; + if (wc < 6 * 4 - tolerance) { logError("Receiver watchdog failure."); exit(1); }