Setup recurring jobs schedules when running in tests

This commit is contained in:
Quentin Gliech
2026-01-09 18:07:44 +01:00
parent 04cbafbc5f
commit 991c60255e

View File

@@ -750,6 +750,9 @@ impl QueueWorker {
///
/// This function can fail if the database connection fails.
pub async fn process_all_jobs_in_tests(&mut self) -> Result<(), QueueRunnerError> {
// In case we haven't setup the schedules yet
self.setup_schedules().await?;
// I swear, I'm the leader!
self.am_i_leader = true;