test: inspect proxy drain state
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user