Skip to content

Commit

Permalink
Partially disable test (#59760)
Browse files Browse the repository at this point in the history
  • Loading branch information
danmoseley authored Sep 30, 2021
1 parent a8da511 commit 96d72db
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,14 @@ public void SkippingHiddenFiles()
{
// Files that begin with periods are considered hidden on Unix
string[] paths = GetNames(TestDirectory, new EnumerationOptions { ReturnSpecialDirectories = true, AttributesToSkip = 0 });
Assert.Contains(".", paths);

if (!PlatformDetection.IsWindows10Version22000OrGreater)
{
// Sometimes this is not returned - presumably an OS bug.
// This occurs often on Windows 11, very rarely otherwise.
Assert.Contains(".", paths);
}

Assert.Contains("..", paths);
}
}
Expand Down

0 comments on commit 96d72db

Please sign in to comment.