test(qbz-app): install the rustls CryptoProvider in shell tests

Follow-up to #663: with reqwest no longer pulling a rustls provider,
QbzCore::new (MusicBrainzClient) panicked "No provider set" in 6
shell tests. The test ctor now calls ensure_crypto_provider(), exactly
like the real binaries do at startup.

km
This commit is contained in:
vicrodh committed 2026-07-26 23:56:38 -06:00
1 parent ad6c98ff7d
commit 96acc4386a
1 file changed
+5
+5
View File
@@ -318,6 +318,11 @@ mod tests {
}
fn test_runtime() -> AppRuntime<NoOpAdapter> {
// QbzCore builds a reqwest client (MusicBrainz); since reqwest no
// longer pulls a rustls provider (#663), tests must install the
// process-level one explicitly, exactly like the real binaries do at
// startup — otherwise Client construction panics with "No provider set".
crate::ensure_crypto_provider();
AppRuntime::with_audio_settings(NoOpAdapter, None, AudioSettings::default(), None)
}