Fix the test for non-dev test runs (#55089) (#55091)

Cherry-pick of https://github.com/zed-industries/zed/pull/55089 into
Preview

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2026-04-28 17:15:02 +02:00 committed by GitHub
parent 4c37250bd8
commit 8ba77679a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1786,11 +1786,10 @@ mod tests {
#[gpui::test]
fn test_default_settings_release_channel_overrides(cx: &mut App) {
assert_eq!(
*release_channel::RELEASE_CHANNEL,
release_channel::ReleaseChannel::Dev,
"tests expect the dev release channel",
);
// The test deals with overrides and should ignore the other set-ups (Preview and Stable runs)
if *release_channel::RELEASE_CHANNEL != release_channel::ReleaseChannel::Dev {
return;
}
let mut defaults: serde_json::Value =
crate::parse_json_with_comments(&default_settings()).unwrap();