summaryrefslogtreecommitdiff
path: root/addons/event/tests/test_event_mail_schedule.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/event/tests/test_event_mail_schedule.py')
-rw-r--r--addons/event/tests/test_event_mail_schedule.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/event/tests/test_event_mail_schedule.py b/addons/event/tests/test_event_mail_schedule.py
index c7c61ee56c1..7ec60492b24 100644
--- a/addons/event/tests/test_event_mail_schedule.py
+++ b/addons/event/tests/test_event_mail_schedule.py
@@ -205,8 +205,7 @@ class TestMailSchedule(TestEventCommon, MockEmail):
# NOTE: currently all schedulers are based on date_open which equals create_date
# meaning several communications may be sent in the time time
with freeze_time(now_start + relativedelta(hours=1)), self.mock_mail_gateway():
- # FIXME: sudo should not be necessary
- reg3.sudo().action_confirm()
+ reg3.action_confirm()
# verify that subscription scheduler was auto-executed after new registration confirmed
self.assertEqual(len(after_sub_scheduler.mail_registration_ids), 3, 'event: should have 3 scheduled communication (1 / registration)')