Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix tests

Mikayla17c9b4ca968c
diff --git a/crates/client/src/channel_store_tests.rs b/crates/client/src/channel_store_tests.rs
index 7f31243dadc..69d5fed70d5 100644
--- a/crates/client/src/channel_store_tests.rs
+++ b/crates/client/src/channel_store_tests.rs
@@ -35,8 +35,8 @@ fn test_update_channels(cx: &mut AppContext) {
&channel_store,
&[
//
- (0, "a", true),
- (0, "b", false),
+ (0, "a", false),
+ (0, "b", true),
],
cx,
);
@@ -65,9 +65,9 @@ fn test_update_channels(cx: &mut AppContext) {
assert_channels(
&channel_store,
&[
- (0, "a", true),
- (1, "y", true),
- (0, "b", false),
+ (0, "a", false),
+ (1, "y", false),
+ (0, "b", true),
(1, "x", false),
],
cx,
@@ -82,6 +82,7 @@ fn update_channels(
channel_store.update(cx, |store, cx| store.update_channels(message, cx));
}
+#[track_caller]
fn assert_channels(
channel_store: &ModelHandle<ChannelStore>,
expected_channels: &[(usize, &str, bool)],
diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs
index 655f0ec84c4..f435d9a7211 100644
--- a/crates/zed/src/zed.rs
+++ b/crates/zed/src/zed.rs
@@ -2401,6 +2401,7 @@ mod tests {
language::init(cx);
editor::init(cx);
project_panel::init_settings(cx);
+ collab_ui::init(&app_state, cx);
pane::init(cx);
project_panel::init((), cx);
terminal_view::init(cx);