summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/integration/run_tests.rs4
-rw-r--r--tests/util/server/src/pty.rs7
2 files changed, 8 insertions, 3 deletions
diff --git a/tests/integration/run_tests.rs b/tests/integration/run_tests.rs
index ed07fab96..f3fc18fee 100644
--- a/tests/integration/run_tests.rs
+++ b/tests/integration/run_tests.rs
@@ -4610,8 +4610,8 @@ fn file_fetcher_preserves_permissions() {
.args("repl --quiet")
.with_pty(|mut console| {
console.write_line(
- "const a = await import('http://localhost:4545/run/019_media_types.ts');",
- );
+ "const a = await import('http://localhost:4545/run/019_media_types.ts');",
+ );
console.expect("Allow?");
console.human_delay();
console.write_line_raw("y");
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]