Allow effects to be flushed before TestAppContext::update callback completes

This commit is contained in:
Nathan Sobo
2021-04-10 00:11:13 -06:00
parent 97a8a8ed43
commit 620eedb727
2 changed files with 6 additions and 5 deletions
+1 -3
View File
@@ -515,13 +515,11 @@ mod tests {
);
ctx.dispatch_action(window_id, vec![pane_2.id()], "pane:close_active_item", ());
});
app.read(|ctx| {
let w = workspace_view.read(ctx);
assert_eq!(w.panes.len(), 1);
assert_eq!(w.active_pane(), &pane_1);
})
});
});
}
}