f486f34ebe
When force quitting, we need to block on the pending writes to ensure that write commands succeed before exiting, and also to avoid a crash when all the views are gone before the auto format call returns from the LS.
16 lines
349 B
Rust
16 lines
349 B
Rust
use super::*;
|
|
|
|
#[tokio::test(flavor = "multi_thread")]
|
|
async fn test_history_completion() -> anyhow::Result<()> {
|
|
test_key_sequence(
|
|
&mut AppBuilder::new().build()?,
|
|
Some(":asdf<ret>:theme d<C-n><tab>"),
|
|
Some(&|app| {
|
|
assert!(!app.editor.is_err());
|
|
}),
|
|
false,
|
|
)
|
|
.await?;
|
|
|
|
Ok(())
|
|
}
|