mirror of
https://github.com/moodle/moodle.git
synced 2025-03-23 00:50:15 +01:00
Added a check for empty email address so that if the adhoc task for sending email notifcation to users for forum update fails because of empty email address an exception is not thrown as the exception was causing the the task for user with empty email address to keep requeuing again and again after failing. Wrote two test cases for testing if the fix has now prevented the task for empty email address to be requeued after failing and to test that if its still requeuing for other cases when the adhoc task fails for some other reason in this cause we are testing for bounce threshold.