Tinche / aiofiles

File support for asyncio
Apache License 2.0
2.67k stars 149 forks source link

Ease up the slow file test, for pypy #51

Closed davesteele closed 5 years ago

davesteele commented 6 years ago

The concurrency test is essentially a race between a file read, with a 1 second delay, and 40 1-byte net reads, with a 10msec delay.

Pypy can fail this test, for reasons that appear to have little to do with the goal of the test.

Ease the goal to allow pypy to catch up.

See e.g. https://travis-ci.org/Tinche/aiofiles/jobs/428265633

davesteele commented 6 years ago

Looking at the master test history, the old way appears to pass ~20% of the time.

Tinche commented 6 years ago

Thanks, I noticed this was failing since I enabled tests on PyPy. Will take a look soon.

Tinche commented 5 years ago

Ok, let's try this approach. Thanks!

davesteele commented 5 years ago

That should work.