Skip to content

Commit bf11125

Browse files
committed
Specify a sorting method in in the file history test
1 parent 0054036 commit bf11125

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LibGit2Sharp.Tests/FileHistoryFixture.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ public void CanTellComplexCommitHistory()
161161
var commit4 = MakeAndCommitChange(repo, repoPath, newPath1, "I have done it again!");
162162

163163
// Perform tests.
164-
var fileHistoryEntries = repo.Commits.QueryBy(newPath1).ToList();
164+
var commitFilter = new CommitFilter () { SortBy = CommitSortStrategies.Topological };
165+
var fileHistoryEntries = repo.Commits.QueryBy(newPath1, commitFilter).ToList();
165166
var changedBlobs = fileHistoryEntries.Blobs().Distinct().ToList();
166167

167168
Assert.Equal(4, fileHistoryEntries.Count());

0 commit comments

Comments
 (0)