mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Allow more time on the concurrency test
Spawning processes is apparently really slow on Windows, and the test is occasionally taking slightly more than a second on AppVeyor. I think we can allow up to the full 2.5 seconds without losing the valuable bits of the test.
This commit is contained in:
parent
b6926e8e2e
commit
231f6013bb
1 changed files with 3 additions and 1 deletions
|
|
@ -177,4 +177,6 @@ def test_xargs_concurrency():
|
||||||
assert ret == 0
|
assert ret == 0
|
||||||
pids = stdout.splitlines()
|
pids = stdout.splitlines()
|
||||||
assert len(pids) == 5
|
assert len(pids) == 5
|
||||||
assert elapsed < 1
|
# It would take 0.5*5=2.5 seconds ot run all of these in serial, so if it
|
||||||
|
# takes less, they must have run concurrently.
|
||||||
|
assert elapsed < 2.5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue