Commit 805e6a4f authored by Julien Muchembled's avatar Julien Muchembled Committed by Eteri

testCRM: fix random test failure

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