Skip to content

Commit 0bd1767

Browse files
committed
fixup! try fix test on windows
1 parent 0d13470 commit 0bd1767

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/workspace/resolver.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -1960,11 +1960,8 @@ mod test {
19601960
#[test]
19611961
fn resolve_sloppy_imports() {
19621962
let sys = InMemorySys::default();
1963-
// This includes a drive letter on windows.
1964-
let root_url = url_from_file_path(
1965-
&url_to_file_path(&Url::parse("file:///").unwrap()).unwrap(),
1966-
)
1967-
.unwrap();
1963+
let root_url =
1964+
url_from_file_path(&std::fs::canonicalize("/").unwrap()).unwrap();
19681965
let fs = CachedMetadataFs::new(sys.clone(), FsCacheOptions::Enabled);
19691966
let sloppy_imports_resolver =
19701967
SloppyImportsResolver::new(fs, SloppyImportsOptions::Enabled);

0 commit comments

Comments
 (0)