From c26353f13f04642269ed8e53595f25ac6144fb75 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 13 Nov 2019 15:39:36 +0100 Subject: [PATCH] Add another workaround for failures in wxDateTime::UNow test If current time doesn't have the milliseconds parts, we need to sleep for a little before retrying. --- tests/datetime/datetimetest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index 6c9af98035..aa0a96c602 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -1743,6 +1743,8 @@ TEST_CASE("wxDateTime::UNow", "[datetime][now][unow]") gotMS = true; break; } + + wxMilliSleep(123); } CHECK( gotMS );