Setup recurring jobs schedules when running in tests

This commit is contained in:
Quentin Gliech committed 2026-01-09 18:07:44 +01:00
1 parent fba290e706
commit 6f0d642618
1 file changed
+3
+3
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;