From eb370ec0574729432b3a5c9fd93fa23c28544e8c Mon Sep 17 00:00:00 2001 From: Martin Bammer Date: Sat, 26 Oct 2024 09:28:32 +0200 Subject: [PATCH] Fix test on Windows --- scandir/tests/scandir.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scandir/tests/scandir.rs b/scandir/tests/scandir.rs index 7a33287..58979c7 100644 --- a/scandir/tests/scandir.rs +++ b/scandir/tests/scandir.rs @@ -14,7 +14,7 @@ fn test_scandir() -> Result<(), Error> { #[cfg(unix)] assert_eq!(210, entries.results.len()); #[cfg(windows)] - assert_eq!(75, entries.results.len()); + assert_eq!(93, entries.results.len()); assert_eq!(0, entries.errors.len()); #[cfg(target_os = "linux")] match entries.results.first().unwrap() { @@ -45,7 +45,7 @@ fn test_scandir_skip_hidden() -> Result<(), Error> { #[cfg(unix)] assert_eq!(192, entries.results.len()); #[cfg(windows)] - assert_eq!(93, entries.results.len()); + assert_eq!(75, entries.results.len()); assert_eq!(0, entries.errors.len()); match entries.results.first().unwrap() { ScandirResult::DirEntry(d) => { @@ -75,7 +75,7 @@ fn test_scandir_extended() -> Result<(), Error> { #[cfg(unix)] assert_eq!(210, entries.results.len()); #[cfg(windows)] - assert_eq!(75, entries.results.len()); + assert_eq!(93, entries.results.len()); assert_eq!(0, entries.errors.len()); match entries.results.first().unwrap() { ScandirResult::DirEntryExt(d) => {