diff --git a/tests/slic3rutils/slic3r_jobs_tests.cpp b/tests/slic3rutils/slic3r_jobs_tests.cpp index b0d01d2edd..e98961d89a 100644 --- a/tests/slic3rutils/slic3r_jobs_tests.cpp +++ b/tests/slic3rutils/slic3r_jobs_tests.cpp @@ -66,6 +66,9 @@ TEMPLATE_LIST_TEST_CASE("Status messages should be received by the main thread d } }); + // make sure that the job starts BEFORE the worker.wait_for_idle() is called + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + worker.wait_for_idle(); REQUIRE(pri->pr == 100);