Skip to content

Commit

Permalink
Allow tests to take longer to account for slow runners.
Browse files Browse the repository at this point in the history
  • Loading branch information
psobot committed Jul 15, 2023
1 parent 2faa168 commit 2841914
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_resampled_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion tests/test_thread_safety.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2841914

Please sign in to comment.