From 30f48145d1a1c747c40f94e2a7314d4bdf61cf55 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 22 Oct 2024 09:11:11 -0400 Subject: Update test_mp_fail_fast * macOS Actions runners have 3 vCPUs. No wonder this wasn't working. Reduce the success count to 1. --- tests/test_multiprocessing.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_multiprocessing.c b/tests/test_multiprocessing.c index 7cc8bc7..7c9d695 100644 --- a/tests/test_multiprocessing.c +++ b/tests/test_multiprocessing.c @@ -121,7 +121,6 @@ void test_mp_pool_workflow() { void test_mp_fail_fast() { char *commands_ff[128] = { - "sleep 1; true", "sleep 3; true", "sleep 5; false", }; @@ -129,7 +128,7 @@ void test_mp_fail_fast() { // Pad the array with tasks. None of these should execute when // the "fail fast" conditions are met char *nopcmd = "sleep 30; true"; - for (size_t i = 3; i < sizeof(commands_ff) / sizeof(*commands_ff); i++) { + for (size_t i = 2; i < sizeof(commands_ff) / sizeof(*commands_ff); i++) { commands_ff[i] = nopcmd; } -- cgit