From 90a0382317f66c531de068fd857fe04c8a5cb059 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 2 Apr 2019 20:40:27 +0100 Subject: [PATCH] Tests: use a concurrency of 1 on musl-based Linux Should reduce a bit of pressure on the stack --- test/unit/beforeEach.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/beforeEach.js b/test/unit/beforeEach.js index d47648e9..33e76e82 100644 --- a/test/unit/beforeEach.js +++ b/test/unit/beforeEach.js @@ -5,8 +5,10 @@ const sharp = require('../../'); const usingCache = detectLibc.family !== detectLibc.MUSL; const usingSimd = !process.env.G_DEBUG; +const concurrency = detectLibc.family === detectLibc.MUSL ? 1 : undefined; beforeEach(function () { sharp.cache(usingCache); sharp.simd(usingSimd); + sharp.concurrency(concurrency); });