]> source.dussan.org Git - redmine.git/commitdiff
Fixes random failure (database may not return changes in the order expected in the...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Jan 2011 21:12:20 +0000 (21:12 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Jan 2011 21:12:20 +0000 (21:12 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4674 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_mercurial_test.rb

index da3022c18fd3b126fd53b3d9ab4f63d907631c01..8cbd00a8498edce3eca67d244856feed4ab53ca0 100644 (file)
@@ -106,7 +106,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
 
       cs1 = @repository.changesets.find_by_revision('13')
       assert_not_nil cs1
-      c1  = cs1.changes
+      c1  = cs1.changes.sort_by(&:path)
       assert_equal 2, c1.size
 
       assert_equal 'A', c1[0].action