Commit e21b9e1e authored by Ivan Tyagov's avatar Ivan Tyagov

Order of objects returned by catalog(mysql) is not guaranteed so adjust test.

parent 6e5debcb
...@@ -4537,9 +4537,9 @@ CREATE TABLE alternate_roles_and_users ( ...@@ -4537,9 +4537,9 @@ CREATE TABLE alternate_roles_and_users (
# searches still work for other users # searches still work for other users
self.login('ERP5TypeTestCase') self.login('ERP5TypeTestCase')
self.assertEquals(sorted([user1, user2]), self.assertSameSet([user1, user2],
sorted([o.getObject() for o in [o.getObject() for o in
self.portal.portal_catalog(portal_type='Person')])) self.portal.portal_catalog(portal_type='Person')])
finally: finally:
# restore catalog configuration # restore catalog configuration
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment