@@ -8,7 +8,7 @@ use helix_term::application::Application;
88
99use super::*;
1010
11−#[tokio::test]
11+#[tokio::test(flavor = "multi_thread")]
1212async fn test_write_quit_fail() -> anyhow::Result<()> {
1313 let file = helpers::new_readonly_tempfile()?;
1414
@@ -16,6 +16,11 @@ async fn test_write_quit_fail() -> anyhow::Result<()> {
1616 &mut helpers::app_with_file(file.path())?,
1717 Some("ihello<esc>:wq<ret>"),
1818 Some(&|app| {
19+ let mut docs: Vec<_> = app.editor.documents().collect();
20+ assert_eq!(1, docs.len());
21+
22+ let doc = docs.pop().unwrap();
23+ assert_eq!(Some(file.path()), doc.path().map(PathBuf::as_path));
1924 assert_eq!(&Severity::Error, app.editor.get_status().unwrap().1);
2025 }),
2126 false,