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:
1 file changed
+5
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user