From 943aeb8c09507deb7a44c4529a42bd5d73d7cb8d Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 15 Aug 2023 13:42:47 -0700 Subject: [PATCH] Run until parked when setting editor's state via EditorTestContext Co-authored-by: Mikayla --- crates/vim/src/test/vim_test_context.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/vim/src/test/vim_test_context.rs b/crates/vim/src/test/vim_test_context.rs index ab5d7382c7..ff8d835edc 100644 --- a/crates/vim/src/test/vim_test_context.rs +++ b/crates/vim/src/test/vim_test_context.rs @@ -92,6 +92,7 @@ impl<'a> VimTestContext<'a> { vim.switch_mode(mode, true, cx); }) }); + self.cx.foreground().run_until_parked(); context_handle }