From eda3850f84f24b71e02512c1ba2d6bf2e3daa2fd Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 23 Nov 2023 11:20:40 -0500 Subject: 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. --- cli/tools/upgrade.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli/tools') 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 { -- cgit v1.2.3