Skip to content

Commit 8accfc7

Browse files
committed
test: commented in test
1 parent 786ffd3 commit 8accfc7

File tree

1 file changed

+4
-4
lines changed
  • monoio-http-client/src/client

1 file changed

+4
-4
lines changed

monoio-http-client/src/client/key.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ mod tests {
241241
let key: Key = (&uri).try_into().expect("unable to convert to Key");
242242
assert_eq!(key.port, 443);
243243
assert_eq!(key.host, "bytedance.com");
244-
// #[cfg(feature = "rustls")]
245-
// assert_eq!(key.server_name, Some("bytedance.com".try_into().unwrap()));
246-
// #[cfg(all(feature = "native-tls", not(feature = "rustls")))]
247-
// assert_eq!(key.server_name, Some("bytedance.com".into()));
244+
#[cfg(feature = "default")]
245+
assert_eq!(key.server_name, Some("bytedance.com".try_into().unwrap()));
246+
#[cfg(all(feature = "native-tls", not(feature = "default")))]
247+
assert_eq!(key.server_name, Some("bytedance.com".into()));
248248
}
249249
}

0 commit comments

Comments
 (0)