Skip to content

Commit

Permalink
install TLS crypto provider in test
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeoghegan committed Jun 24, 2024
1 parent abdfe01 commit cecdc9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/tls_smoke_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ use trillium_tokio::ClientConfig;

#[tokio::test]
async fn https_connection() {
// Choose aws-lc-rs as the default rustls crypto provider. This is what's currently enabled by
// the default Cargo feature. Specifying a default provider here prevents runtime errors if
// another dependency also enables the ring feature.
let _ = trillium_rustls::rustls::crypto::aws_lc_rs::default_provider().install_default();

let self_signed = generate_simple_self_signed(["localhost".into()]).unwrap();

let stopper = Stopper::new();
Expand Down

0 comments on commit cecdc9c

Please sign in to comment.