test(tests): make the body-retry, websocket debug-entry and gzip segment tests deterministic

This commit is contained in:
imSp4rky
2026-12-05 10:13:04 -07:00
parent 00ad15527c
commit 9de59f3142
4 changed files with 16 additions and 10 deletions
+2 -1
View File
@@ -34,8 +34,9 @@ def server():
return
with conn:
conn.recv(65536)
conn.sendall(plan[len(hits)] if len(hits) < len(plan) else CUT)
reply = plan[len(hits)] if len(hits) < len(plan) else CUT
hits.append(1)
conn.sendall(reply)
threading.Thread(target=serve, daemon=True).start()
yield f"http://127.0.0.1:{srv.getsockname()[1]}/x", plan, hits