From a81b7f380fc11fb58994dc9c7a50dafa58314ccf Mon Sep 17 00:00:00 2001 From: kingosticks Date: Tue, 22 Oct 2024 23:45:17 +0100 Subject: [PATCH] net/quinn: Fix test panic due to unset default crypto provider If another dep in the workspace pulls in a different rustls crypto provider then we need to explicitly specify our default provider. Part-of: --- net/quinn/tests/quinnquic.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/quinn/tests/quinnquic.rs b/net/quinn/tests/quinnquic.rs index 911ce520..0e071f37 100644 --- a/net/quinn/tests/quinnquic.rs +++ b/net/quinn/tests/quinnquic.rs @@ -18,6 +18,9 @@ fn init() { INIT.call_once(|| { gst::init().unwrap(); gstquinn::plugin_register_static().expect("QUIC source sink send receive tests"); + rustls::crypto::ring::default_provider() + .install_default() + .expect("Failed to install ring crypto provider"); }); }