Tests: use a concurrency of 1 on musl-based Linux

Should reduce a bit of pressure on the stack
This commit is contained in:
Lovell Fuller 2019-04-02 20:40:27 +01:00
parent 687795c801
commit 90a0382317

View File

@ -5,8 +5,10 @@ const sharp = require('../../');
const usingCache = detectLibc.family !== detectLibc.MUSL; const usingCache = detectLibc.family !== detectLibc.MUSL;
const usingSimd = !process.env.G_DEBUG; const usingSimd = !process.env.G_DEBUG;
const concurrency = detectLibc.family === detectLibc.MUSL ? 1 : undefined;
beforeEach(function () { beforeEach(function () {
sharp.cache(usingCache); sharp.cache(usingCache);
sharp.simd(usingSimd); sharp.simd(usingSimd);
sharp.concurrency(concurrency);
}); });