Skip to content

test: disable the framework queue runner in the queued notification tests - #159

Open
JGamboa wants to merge 1 commit into
goravel:masterfrom
JGamboa:fix/notification-tests-disable-queue-runner
Open

JGamboa wants to merge 1 commit into
goravel:masterfrom
JGamboa:fix/notification-tests-disable-queue-runner

Conversation

@JGamboa

@JGamboa JGamboa commented Oct 18, 2026

Copy link
Copy Markdown

📑 Description

Closes goravel/goravel#1020

The queued notification tests switch queue.default to database and restart the app. They disable only the app's own queue runners, so the framework's goravel:queue runner starts as well and consumes the same queue concurrently with the test's worker. That makes TestSendQueuedNotificationRetriesTransientFailure intermittently find the job still in jobs (expected: 0, actual: 1), and the same race can affect the tests that read the queued payload.

This disables goravel:queue in the six affected tests, like the other notification, broadcast and multi-queue tests already do.

Verification:

  • A probe that queues a notification without starting any worker in the test: with the old config the notification was still delivered (attempts = 1), which shows the hidden consumer. With this change it wasn't (attempts = 0).
  • The whole TestNotificationTestSuite passes repeatedly against framework master.

✅ Checks

  • Updated the affected tests

…ests

These tests switch queue.default to the database connection and restart the
app, disabling only the app's own queue runners. The framework's
goravel:queue runner then starts too and consumes the same queue
concurrently with the test's worker (or before readQueuedNotificationItem
reads the job), so the job row can still exist when the test counts it, or
be gone when it reads it. Disable goravel:queue like the other notification,
broadcast and multi-queue tests already do.
@JGamboa
JGamboa requested a review from a team as a code owner October 18, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant