fix: update stale assertion for unconditional start/finish logging

runDueRecurringTransactions() always logs a start/finish marker for
observability, even when nothing is due, but the "does nothing" test
still asserted logger.info was never called. Pre-existing baseline
failure, unrelated to the notification-center work about to start.
This commit is contained in:
Bastian Wagner
2026-08-04 18:10:40 +02:00
parent 020b390953
commit df634e7601

View File

@@ -42,7 +42,12 @@ describe('RecurringTransactionsScheduler', () => {
await scheduler.runDueRecurringTransactions(); await scheduler.runDueRecurringTransactions();
expect(dataSource.transaction).not.toHaveBeenCalled(); expect(dataSource.transaction).not.toHaveBeenCalled();
expect(logger.info).not.toHaveBeenCalled(); expect(logger.info).toHaveBeenCalledWith(
expect.objectContaining({ event: 'scheduled_recurring_transaction_check_start' }),
);
expect(logger.info).toHaveBeenCalledWith(
expect.objectContaining({ event: 'scheduled_recurring_transaction_check_finished' }),
);
}); });
it('books a transaction for every active player and skips inactive ones', async () => { it('books a transaction for every active player and skips inactive ones', async () => {