diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-05-14 15:59:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-14 15:59:32 -0400 |
commit | 1e2b0a22196ab2a17ceae855293fdcd5a2596161 (patch) | |
tree | 38ce38d7385235c1fff940a2e2ed2cfc37d7ab88 /tests/util | |
parent | f16b4d4df8bd03f2d0c5e5d6855e334fa768e828 (diff) |
chore(tests): increase repl timeout on ci (#23812)
https://github.com/denoland/deno/actions/runs/9084225162/job/24964698935
```
---- run::file_fetcher_preserves_permissions stdout ----
command /Users/runner/work/deno/deno/target/debug/deno repl --quiet
command cwd /Users/runner/work/deno/deno/tests/testdata
------ Start Full Text ------
"const a = await import('http://localhost:4545/run/019_media_types.ts');\r\n"
------- End Full Text -------
Next text: "\r\n"
thread 'run::file_fetcher_preserves_permissions' panicked at tests/integration/run_tests.rs:4615:15:
Timed out.
```
Closes https://github.com/denoland/deno/issues/23690
Closes https://github.com/denoland/deno/issues/23682
Closes https://github.com/denoland/deno/issues/23625
Diffstat (limited to 'tests/util')
-rw-r--r-- | tests/util/server/src/pty.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/util/server/src/pty.rs b/tests/util/server/src/pty.rs index 9b2a5eb5d..d6102c1d6 100644 --- a/tests/util/server/src/pty.rs +++ b/tests/util/server/src/pty.rs @@ -209,7 +209,12 @@ impl Pty { #[track_caller] fn read_until_condition(&mut self, condition: impl FnMut(&mut Self) -> bool) { - self.read_until_condition_with_timeout(condition, Duration::from_secs(15)); + let duration = if std::env::var_os("CI").is_some() { + Duration::from_secs(30) + } else { + Duration::from_secs(15) + }; + self.read_until_condition_with_timeout(condition, duration); } #[track_caller] |