Run until parked when setting editor's state via EditorTestContext

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Max Brunsfeld 2023-08-15 13:42:47 -07:00
parent 13cf3ada39
commit 943aeb8c09

View File

@ -92,6 +92,7 @@ impl<'a> VimTestContext<'a> {
vim.switch_mode(mode, true, cx);
})
});
self.cx.foreground().run_until_parked();
context_handle
}