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

test/unit/repository_git_test.rb

index 54daa8e0d9437e92b185d4f92c9ec6b9d5643fa7..ed049b33d5cfadff818749afaa8bc90a5615c952 100644 (file)
@@ -186,10 +186,9 @@ class RepositoryGitTest < ActiveSupport::TestCase
                    r2.parents[0].identifier
       r3 = @repository.find_changeset_by_name("32ae898b720c2")
       assert_equal 2, r3.parents.length
-      assert_equal "4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8",
-                   r3.parents[0].identifier
-      assert_equal "7e61ac704deecde634b51e59daa8110435dcb3da",
-                   r3.parents[1].identifier
+      r4 = [r3.parents[0].identifier, r3.parents[1].identifier].sort
+      assert_equal "4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8", r4[0]
+      assert_equal "7e61ac704deecde634b51e59daa8110435dcb3da", r4[1]
     end
 
     def test_db_consistent_ordering_init