mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 18:06:18 +04:00
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.
17 lines
349 B
Rust
17 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(())
|
|
}
|