pull/146/head
Chip Senkbeil 2 years ago
parent 0564f6b2ad
commit ebb53cc34d
No known key found for this signature in database
GPG Key ID: 35EF1F8EC72A4131

@ -191,14 +191,16 @@ mod tests {
task.abort();
// Verify the connection fails by trying to read from it (should get connection reset)
conn.readable()
// TODO: Killing the pipe doesn't actually send any confirmation, so reading hangs. Need
// another way to verify that the server is dead from client side.
/* conn.readable()
.await
.expect("Failed to wait for conn to be readable");
let res = conn.read_exact(&mut [0; 10]).await;
assert!(
matches!(res, Ok(0) | Err(_)),
"Unexpected read result: {res:?}"
);
); */
// Restart the server
let task: JoinHandle<io::Result<()>> = tokio::spawn(run_server(

Loading…
Cancel
Save