diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-22 09:11:11 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-22 09:11:11 -0400 |
commit | 30f48145d1a1c747c40f94e2a7314d4bdf61cf55 (patch) | |
tree | 8316ce2d3f39693bfdc6922febe29985adca6532 /tests/test_multiprocessing.c | |
parent | ebb75d08d5f680f13867f71528b83df62a9d27b0 (diff) | |
download | stasis-30f48145d1a1c747c40f94e2a7314d4bdf61cf55.tar.gz |
Update test_mp_fail_fastupdate-tests
* macOS Actions runners have 3 vCPUs. No wonder this wasn't working. Reduce the success count to 1.
Diffstat (limited to 'tests/test_multiprocessing.c')
-rw-r--r-- | tests/test_multiprocessing.c | 3 |
1 files changed, 1 insertions, 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; } |