From 1db4f67ecfcda9b86b7f651bd9cff95d503fc2c1 Mon Sep 17 00:00:00 2001 From: Hamza Aamer Date: Thu, 26 Nov 2026 04:43:25 +0100 Subject: [PATCH] Tests: more time for the sound tests The publish job runs the tests with coverage instrumentation, under which resampling seconds of 48 kHz sound in the 48 kHz test took over Jest's default 5 s on the runner, so publishing 4.4.0 stopped there. Without instrumentation, 5 s of sound resample in about 0.15 s. Part of edge-ml/edge-ml#100 --- __tests__/test_audio_predictor.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/__tests__/test_audio_predictor.js b/__tests__/test_audio_predictor.js index 8788e1f..dd7cc0b 100644 --- a/__tests__/test_audio_predictor.js +++ b/__tests__/test_audio_predictor.js @@ -14,6 +14,11 @@ const floats = (b64) => { const T0 = 1800000000000; +// Resampling seconds of 48 kHz sound takes a few seconds under coverage +// instrumentation (npm test, and the publish job); without it, 5 s of sound +// take about 0.15 s. +jest.setTimeout(30000); + describe.each(["audio_mixed", "audio_only"])("OnnxPredictor with sound (%s)", (name) => { let predictor; let ref;