@@ -9,6 +9,7 @@ use helix_term::application::Application;
9use super::*;
9use super::*;
11#[tokio::test]
11#[tokio::test]
12async fn test_write_quit_fail() -> anyhow::Result<()> {
13async fn test_write_quit_fail() -> anyhow::Result<()> {
13 let file = helpers::new_readonly_tempfile()?;
14 let file = helpers::new_readonly_tempfile()?;
@@ -31,7 +32,8 @@ async fn test_write_quit_fail() -> anyhow::Result<()> {
33#[tokio::test]
34#[tokio::test]
34−async fn test_buffer_close() -> anyhow::Result<()> {
36+async fn test_buffer_close_concurrent() -> anyhow::Result<()> {
35 test_key_sequences(
37 test_key_sequences(
36 &mut Application::new(Args::default(), Config::default())?,
38 &mut Application::new(Args::default(), Config::default())?,
@@ -63,7 +65,7 @@ async fn test_buffer_close() -> anyhow::Result<()> {
63 // verify if writes are queued up, it finishes them before closing the buffer
65 // verify if writes are queued up, it finishes them before closing the buffer
64 let mut file = tempfile::NamedTempFile::new()?;
66 let mut file = tempfile::NamedTempFile::new()?;
65 let mut command = String::new();
67 let mut command = String::new();
66− const RANGE: RangeInclusive<i32> = 1..=10;
68+ const RANGE: RangeInclusive<i32> = 1..=1000;
68 for i in RANGE {
70 for i in RANGE {
69 let cmd = format!("%c{}<esc>:w<ret>", i);
71 let cmd = format!("%c{}<esc>:w<ret>", i);