forked from kenzuya/unshackle
test(tests): make the body-retry, websocket debug-entry and gzip segment tests deterministic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user