Fix compilation of tests without handshake feature

pull/114/head
Sebastian Dröge 2 years ago
parent 44748227ab
commit aed66e94c5
  1. 1
      src/lib.rs

@ -486,6 +486,7 @@ mod tests {
assert_eq!(crate::domain(&request).unwrap(), "::1"); assert_eq!(crate::domain(&request).unwrap(), "::1");
} }
#[cfg(feature = "handshake")]
#[test] #[test]
fn requests_cannot_contain_invalid_uris() { fn requests_cannot_contain_invalid_uris() {
use tungstenite::client::IntoClientRequest; use tungstenite::client::IntoClientRequest;

Loading…
Cancel
Save