From 17c9b4ca968c8605e69c5840fe838feb2735d894 Mon Sep 17 00:00:00 2001 From: Mikayla Date: Tue, 8 Aug 2023 10:03:55 -0700 Subject: [PATCH] Fix tests --- crates/client/src/channel_store_tests.rs | 11 ++++++----- crates/zed/src/zed.rs | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/crates/client/src/channel_store_tests.rs b/crates/client/src/channel_store_tests.rs index 7f31243dad..69d5fed70d 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, expected_channels: &[(usize, &str, bool)], diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index 655f0ec84c..f435d9a721 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);