Read and sort tree first before applying limit

This commit is contained in:
René Pfeuffer
2020-02-26 10:54:16 +01:00
parent c0e0ed3d17
commit 67192a203e
2 changed files with 54 additions and 23 deletions

View File

@@ -175,7 +175,9 @@ public class GitBrowseCommandTest extends AbstractGitCommandTestBase {
Collection<FileObject> foList = root.getChildren();
assertThat(foList).hasSize(2);
assertThat(foList)
.extracting("name")
.containsExactly("d.txt", "e.txt");
FileObject d = findFile(foList, "d.txt");
FileObject e = findFile(foList, "e.txt");