mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-02 14:05:15 +00:00
ci: run the unit suite in parallel and keep it off the network
Test servers shut down without the 0.5s poll wait, unit tests refuse non-loopback lookups, and three load-sensitive tests are steadied. Pushes to dev test Python 3.11 only; the docs job builds with uv.
This commit is contained in:
@@ -25,7 +25,7 @@ SLOW_INDEX = 4
|
||||
FAST_BODY = b"F" * 4096
|
||||
SLOW_BODY = b"S" * 40960
|
||||
TRICKLE_CHUNK = 2048
|
||||
TRICKLE_DELAY = 0.05
|
||||
TRICKLE_DELAY = 0.5
|
||||
|
||||
|
||||
class _Handler(BaseHTTPRequestHandler):
|
||||
@@ -82,7 +82,7 @@ def test_hedge_loser_releases_handles_before_merge(tmp_path, trickle_server, mon
|
||||
slow_hits = trickle_server.counts[f"/seg/{SLOW_INDEX}"]
|
||||
assert slow_hits == 2, "hedge never fired; the race under test was not exercised"
|
||||
|
||||
# the batch must not stall draining the loser's stream (trickle alone takes ~1s)
|
||||
# the batch must not stall draining the loser's stream (trickle alone takes ~10s)
|
||||
assert wall < 5
|
||||
|
||||
for i in range(SEGMENTS):
|
||||
|
||||
Reference in New Issue
Block a user