diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-11-23 11:20:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-23 16:20:40 +0000 |
commit | eda3850f84f24b71e02512c1ba2d6bf2e3daa2fd (patch) | |
tree | 0ea304cd4406402cace81888769c30c2ecec7803 /cli/tools/upgrade.rs | |
parent | bf42467e215b20b36ec6b4bf30212e4beb2dd01f (diff) |
chore: add upgrade prompt integration test (#21273)
1. Adds an upgrade prompt integration test.
1. Adds a test for when the upgrade check takes a long time in the repl.
Diffstat (limited to 'cli/tools/upgrade.rs')
-rw-r--r-- | cli/tools/upgrade.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/tools/upgrade.rs b/cli/tools/upgrade.rs index c5efa771b..b091c499d 100644 --- a/cli/tools/upgrade.rs +++ b/cli/tools/upgrade.rs @@ -263,6 +263,9 @@ pub fn check_for_upgrades( tokio::time::sleep(UPGRADE_CHECK_FETCH_DELAY).await; fetch_and_store_latest_version(&env, &version_provider).await; + + // text is used by the test suite + log::debug!("Finished upgrade checker.") }); } @@ -597,7 +600,7 @@ fn get_url( } fn base_upgrade_url() -> Cow<'static, str> { - // this is used to get the current version + // this is used by the test suite if let Ok(url) = env::var("DENO_DONT_USE_INTERNAL_BASE_UPGRADE_URL") { Cow::Owned(url) } else { |