Skip to content

Commit 7c7c738

Browse files
tests: fix test for nested int test file discovery
1 parent d35ebf7 commit 7c7c738

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: src/cargo-fmt/main.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -917,10 +917,11 @@ mod cargo_fmt_tests {
917917
let exp_other = PathBuf::from(
918918
"tests/nested-test-files/root-and-nested-tests/tests/nested/other.rs",
919919
);
920-
assert_eq!(
921-
Some(vec![exp_baz, exp_foo_bar, exp_other]),
922-
get_nested_integration_test_files(&target_dir, &target_dir),
923-
)
920+
let files = get_nested_integration_test_files(&target_dir, &target_dir).unwrap();
921+
assert_eq!(3, files.len());
922+
assert!(files.contains(&exp_baz));
923+
assert!(files.contains(&exp_foo_bar));
924+
assert!(files.contains(&exp_other));
924925
}
925926
}
926927

0 commit comments

Comments
 (0)