diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-08-08 17:51:27 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-08-08 17:51:27 +0100 |
| commit | 091f695c90158f161c54212e1951ba0d48a80b56 (patch) | |
| tree | 5ab0fa7030a3cb77f99c7cf767ff45adcc702768 | |
| parent | 9971f23a184d57600ea9b1962910d32bf6aec185 (diff) | |
test: increase rexpect timeout 3s ~> 4s
to avoid tests intermitantly failing when there is no problem
| -rw-r--r-- | test_utils/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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 { | |||
| 705 | S: AsRef<OsStr>, | 705 | S: AsRef<OsStr>, |
| 706 | { | 706 | { |
| 707 | Self { | 707 | Self { |
| 708 | rexpect_session: rexpect_with(args, 3000).expect("rexpect to spawn new process"), | 708 | rexpect_session: rexpect_with(args, 4000).expect("rexpect to spawn new process"), |
| 709 | formatter: ColorfulTheme::default(), | 709 | formatter: ColorfulTheme::default(), |
| 710 | } | 710 | } |
| 711 | } | 711 | } |
| @@ -715,7 +715,7 @@ impl CliTester { | |||
| 715 | S: AsRef<OsStr>, | 715 | S: AsRef<OsStr>, |
| 716 | { | 716 | { |
| 717 | Self { | 717 | Self { |
| 718 | rexpect_session: rexpect_with_from_dir(dir, args, 3000) | 718 | rexpect_session: rexpect_with_from_dir(dir, args, 4000) |
| 719 | .expect("rexpect to spawn new process"), | 719 | .expect("rexpect to spawn new process"), |
| 720 | formatter: ColorfulTheme::default(), | 720 | formatter: ColorfulTheme::default(), |
| 721 | } | 721 | } |
| @@ -734,7 +734,7 @@ impl CliTester { | |||
| 734 | 734 | ||
| 735 | pub fn new_remote_helper_from_dir(dir: &PathBuf, nostr_remote_url: &str) -> Self { | 735 | pub fn new_remote_helper_from_dir(dir: &PathBuf, nostr_remote_url: &str) -> Self { |
| 736 | Self { | 736 | Self { |
| 737 | rexpect_session: remote_helper_rexpect_with_from_dir(dir, nostr_remote_url, 3000) | 737 | rexpect_session: remote_helper_rexpect_with_from_dir(dir, nostr_remote_url, 4000) |
| 738 | .expect("rexpect to spawn new process"), | 738 | .expect("rexpect to spawn new process"), |
| 739 | formatter: ColorfulTheme::default(), | 739 | formatter: ColorfulTheme::default(), |
| 740 | } | 740 | } |
| @@ -746,7 +746,7 @@ impl CliTester { | |||
| 746 | S: AsRef<OsStr>, | 746 | S: AsRef<OsStr>, |
| 747 | { | 747 | { |
| 748 | Self { | 748 | Self { |
| 749 | rexpect_session: git_with_remote_helper_rexpect_with_from_dir(dir, args, 3000) | 749 | rexpect_session: git_with_remote_helper_rexpect_with_from_dir(dir, args, 4000) |
| 750 | .expect("rexpect to spawn new process"), | 750 | .expect("rexpect to spawn new process"), |
| 751 | formatter: ColorfulTheme::default(), | 751 | formatter: ColorfulTheme::default(), |
| 752 | } | 752 | } |
| @@ -761,7 +761,7 @@ impl CliTester { | |||
| 761 | .process | 761 | .process |
| 762 | .exit() | 762 | .exit() |
| 763 | .expect("process to exit"); | 763 | .expect("process to exit"); |
| 764 | self.rexpect_session = rexpect_with(args, 3000).expect("rexpect to spawn new process"); | 764 | self.rexpect_session = rexpect_with(args, 4000).expect("rexpect to spawn new process"); |
| 765 | self | 765 | self |
| 766 | } | 766 | } |
| 767 | 767 | ||