]> granicus.if.org Git - python/commit
bpo-33353: test_asyncio uses smaller sendfile data (#7083)
authorVictor Stinner <vstinner@redhat.com>
Wed, 23 May 2018 22:56:00 +0000 (00:56 +0200)
committerGitHub <noreply@github.com>
Wed, 23 May 2018 22:56:00 +0000 (00:56 +0200)
commit2932755cc11fd82b4908d60b24b837aa4f3028e6
treef76adca7ff648136ffb90a2ae4477b5c13649f54
parent529525fb5a8fd9b96ab4021311a598c77588b918
bpo-33353: test_asyncio uses smaller sendfile data (#7083)

bpo-32622, bpo-33353: sendfile() tests of test_asyncio use socket
buffers of 1 kB "to test on relative small data sets". Send only
160 KiB rather 10 MB to make the test much faster.

Shrink also SendfileBase.DATA from 1600 KiB to 160 KiB.

On Linux, 3 test_sock_sendfile_mix_with_regular_send() runs now take
less than 1 second, instead of 18 seconds.

On FreeBSD, the 3 tests didn't hang, but took 3 minutes. Now
the 3 tests pass in less than 1 seconds.
Lib/test/test_asyncio/test_events.py