Commit e705e5d0 authored by Julien Muchembled's avatar Julien Muchembled

testCRM: fix random test failure

parent 13c9b820
...@@ -1760,7 +1760,8 @@ class TestCRMMailSend(BaseTestCRM): ...@@ -1760,7 +1760,8 @@ class TestCRMMailSend(BaseTestCRM):
self.tic() self.tic()
# check created Event # check created Event
event = organisation.getDestinationSectionRelatedValue() _, event = sorted(organisation.getDestinationSectionRelatedValueList(),
key=lambda x: x.getCreationDate())
self.assertEqual(event.getTitle(), title) self.assertEqual(event.getTitle(), title)
self.assertEqual(event.getResource(), resource) self.assertEqual(event.getResource(), resource)
self.assertTrue(event.hasStartDate()) self.assertTrue(event.hasStartDate())
......
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