π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Allow tests to take longer to account for slow runners.
Peter Sobot2841914185b2
diff --git a/tests/test_resampled_io.py b/tests/test_resampled_io.pyindex e1717d9..0754778 100644--- a/tests/test_resampled_io.py+++ b/tests/test_resampled_io.py@@ -155,7 +155,7 @@ def test_seek_resampled_is_constant_time(sample_rate: float, target_sample_rate:f.seek(i)b = time.time()timings.append(b - a)- assert np.std(timings) < 0.01+ assert np.std(timings) < 0.02@pytest.mark.parametrize("sample_rate", [8000, 11025, 22050, 44100, 48000])diff --git a/tests/test_thread_safety.py b/tests/test_thread_safety.pyindex e27bae5..a5480ef 100644--- a/tests/test_thread_safety.py+++ b/tests/test_thread_safety.py@@ -51,7 +51,7 @@ def test_concurrent_processing_produces_identical_audio(plugin_class):futures.append(e.submit(plugin.process, noise, sample_rate=sr))# This will throw an exception if we exceed the timeout:- processed = [future.result(timeout=2 * num_concurrent_plugins) for future in futures]+ processed = [future.result(timeout=10 * num_concurrent_plugins) for future in futures]for result in processed:np.testing.assert_allclose(expected_output, result)