Change ProtocolErrorType to ProtocolError in test

pull/168/head
WiredSound 4 years ago
parent 3e485ddb96
commit f4aa926092
  1. 4
      tests/no_send_after_close.rs

@ -8,7 +8,7 @@ use std::{
time::Duration, time::Duration,
}; };
use tungstenite::{accept, connect, error::ProtocolErrorType, Error, Message}; use tungstenite::{accept, connect, error::ProtocolError, Error, Message};
use url::Url; use url::Url;
#[test] #[test]
@ -46,7 +46,7 @@ fn test_no_send_after_close() {
assert!(err.is_err()); assert!(err.is_err());
match err.unwrap_err() { match err.unwrap_err() {
Error::Protocol(s) => assert_eq!(s, ProtocolErrorType::SendAfterClosing), Error::Protocol(s) => assert_eq!(s, ProtocolError::SendAfterClosing),
e => panic!("unexpected error: {:?}", e), e => panic!("unexpected error: {:?}", e),
} }

Loading…
Cancel
Save