Remove PartialEq from error enum

This commit is contained in:
moznion
2020-12-12 00:10:20 +09:00
parent fac7fceaf9
commit 8b54927110
2 changed files with 7 additions and 2 deletions

View File

@@ -158,7 +158,12 @@ mod tests {
rfc2865::add_user_name(&mut req_packet, "admin");
rfc2865::add_user_password(&mut req_packet, b"p@ssw0rd").unwrap();
let res = client.send_packet(&remote_addr, &req_packet).await;
assert_eq!(res.unwrap_err(), ClientError::SocketTimeoutError());
let err = res.unwrap_err();
match err {
ClientError::SocketTimeoutError() => {}
_ => panic!("unexpected error: {}", err),
}
sender.send(()).unwrap();
server_proc.await.unwrap();