-
-
Notifications
You must be signed in to change notification settings - Fork 886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix startup errors, add unit test for scheduled task errors (fixes #5209) #5269
Conversation
1512650
to
323b154
Compare
@@ -111,49 +141,44 @@ pub async fn setup(context: Data<LemmyContext>) -> LemmyResult<()> { | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed this file so that all the individual tasks return result, and only the top-level handler logs them. That way we can use a simple unit test to ensure that no errors are thrown.
ada058a
to
53e6c3d
Compare
2199c80
to
8e5a014
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because you changes utils.sql and #4673 has not been merged yet, you must add a migration that just runs SELECT;
, as explained in comments in schema_setup.rs
@dullbananas Done. |
No description provided.