From b96636799933636f153c6fa3e6de6e465ea381a8 Mon Sep 17 00:00:00 2001 From: LoricAndre Date: Sat, 30 Nov 2024 19:51:23 +0100 Subject: [PATCH] better sleep --- e2e/src/test_utils.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e2e/src/test_utils.rs b/e2e/src/test_utils.rs index 12efafe5..2905bbc1 100644 --- a/e2e/src/test_utils.rs +++ b/e2e/src/test_utils.rs @@ -84,7 +84,6 @@ impl TmuxController { .split(|c| *c == b'\n') .map(|bytes| String::from_utf8(bytes.to_vec()).expect("Failed to parse bytes as UTF8 string")) .collect::>(); - sleep(Duration::from_millis(50)); Ok(output[0..output.len() - 1].to_vec()) } @@ -105,8 +104,10 @@ impl TmuxController { &name, &format!("{}; {}", unset_cmd, shell_cmd), ])?; + sleep(Duration::from_millis(50)); Self::run(&["set-window-option", "-t", &name, "pane-base-index", "0"])?; + sleep(Duration::from_millis(50)); Ok(Self { window: name, @@ -118,6 +119,7 @@ impl TmuxController { for key in keys { Self::run(&["send-keys", "-t", &self.window, &key.to_string()])?; } + sleep(Duration::from_millis(10)); Ok(()) }