test: inspect proxy drain state

This commit is contained in:
2026-09-22 16:16:36 +08:00
parent 3b4d0a3fad
commit 4f97aa0f3d
2 changed files with 13 additions and 1 deletions

View File

@@ -249,6 +249,10 @@ def main() -> None:
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
assert backend.stdin is not None
assert backend.stdout is not None
backend.stdin.write('"snapshot"\n')
backend.stdin.flush()
print(f"native after proxy drain: {backend.stdout.readline().strip()}", flush=True)
backend.stdin.write('"stop"\n')
backend.stdin.flush()
exit_code = backend.wait(timeout=5)