diff --git a/plugins/git4idea/tests/git4idea/branch/GitBranchWorkerTest.groovy b/plugins/git4idea/tests/git4idea/branch/GitBranchWorkerTest.groovy index e7d6005fcf13..43497f755090 100644 --- a/plugins/git4idea/tests/git4idea/branch/GitBranchWorkerTest.groovy +++ b/plugins/git4idea/tests/git4idea/branch/GitBranchWorkerTest.groovy @@ -321,7 +321,9 @@ class GitBranchWorkerTest { if (newGitVersion()) { assertEquals "Incorrect set of local changes was shown in the dialog", localChanges, - changes.collect({ FileUtil.getRelativePath(myUltimate.root.path, it.afterRevision.file.path, File.separatorChar) }) + changes.collect({ + FileUtil.getRelativePath(myUltimate.root.path, it.afterRevision.file.path, File.separatorChar) } + ).sort() } }