Don't trigger observations with notifications emitted prior to observing

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2022-03-22 16:28:11 +01:00
co-authored by Nathan Sobo
parent 5ecf945e28
commit 9885c4f6ba
2 changed files with 151 additions and 34 deletions
+2 -2
View File
@@ -4505,10 +4505,10 @@ mod tests {
cx_a.foreground().run_until_parked();
// Ensure leader updates don't change the active pane of followers
workspace_a.read_with(cx_a, |workspace, cx| {
workspace_a.read_with(cx_a, |workspace, _| {
assert_ne!(*workspace.active_pane(), pane_a1);
});
workspace_b.read_with(cx_b, |workspace, cx| {
workspace_b.read_with(cx_b, |workspace, _| {
assert_ne!(*workspace.active_pane(), pane_b1);
});