summaryrefslogtreecommitdiff
path: root/cli/tests/integration/upgrade_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-11-23 12:54:27 -0500
committerGitHub <noreply@github.com>2023-11-23 17:54:27 +0000
commitd8961a9dfe7f07b90e69efd29bfb86adf765dace (patch)
tree702ea8ff0bd55dab0f7fb483868ccd003bec7de6 /cli/tests/integration/upgrade_tests.rs
parent68a0877f8dc4a821b3688105b24953ddfaa9e189 (diff)
chore: fix upgrade_prompt test on main (#21314)
Issue was main does canary builds, which broke this test because it didn't handle searching for a canary release. Tested by building as canary locally.
Diffstat (limited to 'cli/tests/integration/upgrade_tests.rs')
-rw-r--r--cli/tests/integration/upgrade_tests.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/tests/integration/upgrade_tests.rs b/cli/tests/integration/upgrade_tests.rs
index 9b0ad30bd..0d41a1649 100644
--- a/cli/tests/integration/upgrade_tests.rs
+++ b/cli/tests/integration/upgrade_tests.rs
@@ -223,7 +223,11 @@ fn upgrade_prompt() {
// - We need to use a pty here because the upgrade prompt
// doesn't occur except when there's a pty.
// - Version comes from the test server.
- pty.expect(" 99999.99.99 Run `deno upgrade` to install it.");
+ pty.expect_any(&[
+ " 99999.99.99 Run `deno upgrade` to install it.",
+ // it builds canary releases on main, so check for this in that case
+ "Run `deno upgrade --canary` to install it.",
+ ]);
});
}