|
|
@ -34,7 +34,7 @@ fn test_receive_after_init_close() { |
|
|
|
let err = client.read_message().unwrap_err(); // now we should get ConnectionClosed
|
|
|
|
let err = client.read_message().unwrap_err(); // now we should get ConnectionClosed
|
|
|
|
match err { |
|
|
|
match err { |
|
|
|
Error::ConnectionClosed => {} |
|
|
|
Error::ConnectionClosed => {} |
|
|
|
_ => panic!("unexpected error"), |
|
|
|
_ => panic!("unexpected error: {:?}", err), |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -52,7 +52,7 @@ fn test_receive_after_init_close() { |
|
|
|
let err = client_handler.read_message().unwrap_err(); // now we should get ConnectionClosed
|
|
|
|
let err = client_handler.read_message().unwrap_err(); // now we should get ConnectionClosed
|
|
|
|
match err { |
|
|
|
match err { |
|
|
|
Error::ConnectionClosed => {} |
|
|
|
Error::ConnectionClosed => {} |
|
|
|
_ => panic!("unexpected error"), |
|
|
|
_ => panic!("unexpected error: {:?}", err), |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
drop(client_handler); |
|
|
|
drop(client_handler); |
|
|
|