From 6f308b3af04bc63607ca9cec574d2fa2084b2003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 14 Mar 2023 07:37:15 -0400 Subject: [PATCH] test: fix flaky resolve_import_map_flags_take_precedence test (#18182) Trying to fix https://github.com/denoland/deno/issues/18180 --- cli/args/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/args/mod.rs b/cli/args/mod.rs index 25a1514f39..a624dcc799 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -1247,7 +1247,7 @@ mod test { let config_text = r#"{ "importMap": "import_map.json" }"#; - let cwd = &PathBuf::from("/"); + let cwd = &std::env::current_dir().unwrap(); let config_specifier = ModuleSpecifier::parse("file:///deno/deno.jsonc").unwrap(); let config_file = ConfigFile::new(config_text, &config_specifier).unwrap();