Skip to content

Commit 0582ec5

Browse files
committed
ensure stable sort order for deterministic tests
1 parent 8b2bcdc commit 0582ec5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gix-worktree/tests/worktree/index/status.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use bstr::BStr;
2-
use gix_worktree::fs::{self, Capabilities};
2+
use gix_worktree::fs::Capabilities;
33
use gix_worktree::index::status::content::FastEq;
44
use gix_worktree::index::status::worktree::{self, Options};
55
use gix_worktree::index::status::{Change, Recorder};
@@ -22,6 +22,7 @@ fn fixture(name: &str, expected_status: &[(&BStr, Option<Change>, bool)]) {
2222
},
2323
)
2424
.unwrap();
25+
recorder.records.sort_unstable_by_key(|(name, _, _)| *name);
2526
assert_eq!(recorder.records, expected_status)
2627
}
2728

0 commit comments

Comments
 (0)