diff --git a/tests/miso-ormolu.sh b/tests/miso-ormolu.sh
index 69bebf567b72a93e1eab7642fe8e4dae27b31939..4cbc95c31587bc96c44d604ec1c7e5cb5f189088 100755
--- a/tests/miso-ormolu.sh
+++ b/tests/miso-ormolu.sh
@@ -18,7 +18,7 @@ curl -f -L --retry 5 https://github.com/haskell-wasm/playwright/archive/refs/hea
 cd examples/todomvc
 npm install
 npx playwright install --with-deps
-npx playwright test --workers=$CPUS
+npx playwright test --workers=$(($CPUS > 8 ? 8 : $CPUS))
 popd
 popd
 popd