Be more tolerant w.r.t. timing for macOS test due to CI VM timing issues.

This commit is contained in:
Sönke Ludwig 2019-11-02 15:41:31 +01:00
parent bef1c57315
commit 5116ddbd57

View file

@ -47,7 +47,9 @@ void main()
catch (Exception e) assert(false, "Receiver thread failed: "~e.msg); catch (Exception e) assert(false, "Receiver thread failed: "~e.msg);
logInfo("Receive loop finished."); 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."); logError("Receiver watchdog failure.");
exit(1); exit(1);
} }