We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6306f4 commit 212a561Copy full SHA for 212a561
tests/webdav.rs
@@ -56,6 +56,12 @@ fn webdav_advertised_in_options(
56
}
57
58
fn list_webdav(url: url::Url, path: &str) -> Result<Vec<ListEntity>, reqwest_dav::Error> {
59
+ // Make sure that tests using this can run in isolation. For this, we need to make sure
60
+ // that the crypto provider for rustls is initialized.
61
+ if rustls::crypto::CryptoProvider::get_default().is_none() {
62
+ let _ = rustls::crypto::ring::default_provider().install_default();
63
+ }
64
+
65
let client = DavClientBuilder::new().set_host(url.to_string()).build()?;
66
67
let rt = tokio::runtime::Runtime::new().unwrap();
0 commit comments