]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: test: model: fix failing test_parents on PostgreSQL (#5501)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 3 Nov 2011 09:58:07 +0000 (09:58 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 3 Nov 2011 09:58:07 +0000 (09:58 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7719 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_mercurial_test.rb

index 7dc58f8fc88ed01c0b76c736d067e4e8309e335c..437b15f9823cd5ff5500fc020c4340abff29a985 100644 (file)
@@ -273,10 +273,9 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
                    r2.parents[0].identifier
       r3 = @repository.changesets.find_by_revision('30')
       assert_equal 2, r3.parents.length
-      assert_equal "a94b0528f24f",
-                   r3.parents[0].identifier
-      assert_equal "3a330eb32958",
-                   r3.parents[1].identifier
+      r4 = [r3.parents[0].identifier, r3.parents[1].identifier].sort
+      assert_equal "3a330eb32958", r4[0]
+      assert_equal "a94b0528f24f", r4[1]
     end
 
     def test_activities