From 091f695c90158f161c54212e1951ba0d48a80b56 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 8 Aug 2024 17:51:27 +0100 Subject: test: increase rexpect timeout 3s ~> 4s to avoid tests intermitantly failing when there is no problem --- test_utils/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test_utils/src') diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 3270a79..6c177bc 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs @@ -705,7 +705,7 @@ impl CliTester { S: AsRef, { Self { - rexpect_session: rexpect_with(args, 3000).expect("rexpect to spawn new process"), + rexpect_session: rexpect_with(args, 4000).expect("rexpect to spawn new process"), formatter: ColorfulTheme::default(), } } @@ -715,7 +715,7 @@ impl CliTester { S: AsRef, { Self { - rexpect_session: rexpect_with_from_dir(dir, args, 3000) + rexpect_session: rexpect_with_from_dir(dir, args, 4000) .expect("rexpect to spawn new process"), formatter: ColorfulTheme::default(), } @@ -734,7 +734,7 @@ impl CliTester { pub fn new_remote_helper_from_dir(dir: &PathBuf, nostr_remote_url: &str) -> Self { Self { - rexpect_session: remote_helper_rexpect_with_from_dir(dir, nostr_remote_url, 3000) + rexpect_session: remote_helper_rexpect_with_from_dir(dir, nostr_remote_url, 4000) .expect("rexpect to spawn new process"), formatter: ColorfulTheme::default(), } @@ -746,7 +746,7 @@ impl CliTester { S: AsRef, { Self { - rexpect_session: git_with_remote_helper_rexpect_with_from_dir(dir, args, 3000) + rexpect_session: git_with_remote_helper_rexpect_with_from_dir(dir, args, 4000) .expect("rexpect to spawn new process"), formatter: ColorfulTheme::default(), } @@ -761,7 +761,7 @@ impl CliTester { .process .exit() .expect("process to exit"); - self.rexpect_session = rexpect_with(args, 3000).expect("rexpect to spawn new process"); + self.rexpect_session = rexpect_with(args, 4000).expect("rexpect to spawn new process"); self } -- cgit v1.2.3