Fix Windows test failures not being detected in CI (#36446)

Bug introduced in #35926 

Release Notes:

- N/A
This commit is contained in:
Cole Miller
2025-08-19 14:53:10 +00:00
committed by GitHub
parent 6c255c1973
commit 1444cd9839
6 changed files with 87 additions and 114 deletions
+3 -1
View File
@@ -1101,7 +1101,9 @@ impl FakeFsState {
) -> Option<(&mut FakeFsEntry, PathBuf)> {
let canonical_path = self.canonicalize(target, follow_symlink)?;
let mut components = canonical_path.components();
let mut components = canonical_path
.components()
.skip_while(|component| matches!(component, Component::Prefix(_)));
let Some(Component::RootDir) = components.next() else {
panic!(
"the path {:?} was not canonicalized properly {:?}",