scm: git: test: model: fix failing test_parents on PostgreSQL (#5501)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7720 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-11-03 09:58:38 +00:00
parent 4a5a4bad97
commit e1f3719634
1 changed files with 3 additions and 4 deletions

View File

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