diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index 312fc00..01a95f3 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -41,6 +41,7 @@ jobs: - run: cargo check --verbose --no-default-features --features=proxy,use-openssl - run: cargo check --verbose --no-default-features --features=proxy,use-rustls - run: cargo check --verbose --no-default-features --features=proxy,use-rustls-ring + - run: cargo check --verbose --no-default-features --features=proxy,use-rustls,use-rustls-ring fmt: name: Rust fmt diff --git a/src/raw_client.rs b/src/raw_client.rs index 8cb12e2..5d67467 100644 --- a/src/raw_client.rs +++ b/src/raw_client.rs @@ -408,7 +408,7 @@ impl RawClient { if rustls::crypto::CryptoProvider::get_default().is_none() { // We install a crypto provider depending on the set feature. - #[cfg(feature = "use-rustls")] + #[cfg(all(feature = "use-rustls", not(feature = "use-rustls-ring")))] rustls::crypto::CryptoProvider::install_default( rustls::crypto::aws_lc_rs::default_provider(), ) @@ -449,7 +449,7 @@ impl RawClient { builder .dangerous() .with_custom_certificate_verifier(std::sync::Arc::new( - #[cfg(feature = "use-rustls")] + #[cfg(all(feature = "use-rustls", not(feature = "use-rustls-ring")))] danger::NoCertificateVerification::new(rustls::crypto::aws_lc_rs::default_provider()), #[cfg(feature = "use-rustls-ring")] danger::NoCertificateVerification::new(rustls::crypto::ring::default_provider()), @@ -1249,7 +1249,7 @@ mod test { let client = RawClient::new(get_test_server(), None).unwrap(); let resp = client.relay_fee().unwrap(); - assert_eq!(resp, 0.00001); + assert!(resp > 0.0); } #[test]