Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix the test for non-dev test runs (#55089)
Kirill Bulatov16daaa7fe197
diff --git a/crates/settings/src/settings_store.rs b/crates/settings/src/settings_store.rsindex 0eb6a32465b..5677b70b7c8 100644--- a/crates/settings/src/settings_store.rs+++ b/crates/settings/src/settings_store.rs@@ -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();