#![cfg(not(target_arch = "wasm32"))]
#[tokio::test]
async fn test_badssl_modern() {
let text = rquest::Client::builder()
.no_proxy()
.build()
.unwrap()
.get("https://mozilla-modern.badssl.com/")
.send()
.await
.unwrap()
.text()
.await
.unwrap();
assert!(text.contains("
mozilla-modern.badssl.com"));
}
#[cfg(feature = "boring-tls")]
#[tokio::test]
async fn test_badssl_self_signed() {
let text = rquest::Client::builder()
.danger_accept_invalid_certs(true)
.no_proxy()
.build()
.unwrap()
.get("https://self-signed.badssl.com/")
.send()
.await
.unwrap()
.text()
.await
.unwrap();
assert!(text.contains("self-signed.badssl.com"));
}