(proc)
| 241 | ping = WsFrame.client_ping(b'12345') |
| 242 | |
| 243 | def do_send(proc): |
| 244 | for _ in range(frame_count): |
| 245 | try: |
| 246 | proc.stdin.write(ping.to_network()) |
| 247 | proc.stdin.flush() |
| 248 | proc.wait(timeout=0.2) |
| 249 | except subprocess.TimeoutExpired: |
| 250 | pass |
| 251 | |
| 252 | r, infos, frames = ws_run(env, path='/ws/echo/', do_input=do_send) |
| 253 | assert r.exit_code == 0 |
nothing calls this directly
no test coverage detected