We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 786ffd3 commit 8accfc7Copy full SHA for 8accfc7
monoio-http-client/src/client/key.rs
@@ -241,9 +241,9 @@ mod tests {
241
let key: Key = (&uri).try_into().expect("unable to convert to Key");
242
assert_eq!(key.port, 443);
243
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()));
+ #[cfg(feature = "default")]
+ assert_eq!(key.server_name, Some("bytedance.com".try_into().unwrap()));
+ #[cfg(all(feature = "native-tls", not(feature = "default")))]
+ assert_eq!(key.server_name, Some("bytedance.com".into()));
248
}
249
0 commit comments