diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4ec297dd1..b782395613 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,7 +139,7 @@ jobs: - name: Increase max user process (macOS only) if: runner.os == 'macOS' - run: sudo launchctl limit maxproc 2000 2000 + run: sudo launchctl limit maxproc 5000 8000 - name: Use Node.js uses: actions/setup-node@v4 diff --git a/tests/docstrings_examples/DocTest.res b/tests/docstrings_examples/DocTest.res index 0962cf56cc..afd7f74c67 100644 --- a/tests/docstrings_examples/DocTest.res +++ b/tests/docstrings_examples/DocTest.res @@ -337,7 +337,7 @@ let main = async () => { let chuncks = modules->chunkArray(batchSize) Console.log2("chuncks length", chuncks->Array.length) - Console.log2("chunck part size", chuncks->Array.map(f => f->Array.length)) + Console.log2("chunck part size", chuncks->Array.reduce(0, (acc, cur) => acc + Array.length(cur))) let context = ref(0) diff --git a/tests/docstrings_examples/DocTest.res.mjs b/tests/docstrings_examples/DocTest.res.mjs index a98ae8de22..e00555fb8f 100644 --- a/tests/docstrings_examples/DocTest.res.mjs +++ b/tests/docstrings_examples/DocTest.res.mjs @@ -370,7 +370,7 @@ async function main() { let batchSize = (Os.cpus().length << 1); let chuncks = chunkArray(modules, batchSize); console.log("chuncks length", chuncks.length); - console.log("chunck part size", chuncks.map(f => f.length)); + console.log("chunck part size", $$Array.reduce(chuncks, 0, (acc, cur) => acc + cur.length | 0)); let context = { contents: 0 };