@@ -8,7 +8,7 @@ use helix_term::application::Application;
9use super::*;
9use super::*;
11−#[tokio::test]
11+#[tokio::test(flavor = "multi_thread")]
12async fn test_write_quit_fail() -> anyhow::Result<()> {
12async fn test_write_quit_fail() -> anyhow::Result<()> {
13 let file = helpers::new_readonly_tempfile()?;
13 let file = helpers::new_readonly_tempfile()?;
@@ -16,6 +16,11 @@ async fn test_write_quit_fail() -> anyhow::Result<()> {
16 &mut helpers::app_with_file(file.path())?,
16 &mut helpers::app_with_file(file.path())?,
17 Some("ihello<esc>:wq<ret>"),
17 Some("ihello<esc>:wq<ret>"),
18 Some(&|app| {
18 Some(&|app| {
19+ let mut docs: Vec<_> = app.editor.documents().collect();
20+ assert_eq!(1, docs.len());
22+ let doc = docs.pop().unwrap();
23+ assert_eq!(Some(file.path()), doc.path().map(PathBuf::as_path));
19 assert_eq!(&Severity::Error, app.editor.get_status().unwrap().1);
24 assert_eq!(&Severity::Error, app.editor.get_status().unwrap().1);