Skip to content

Conversation

@vadimonus
Copy link
Contributor

@vadimonus vadimonus commented Nov 3, 2025

Suddenly found out that QUEUE_CONNECTION is not set for Redis Cluster queue integration tests. This leads to using of default connection (sync) in some tests and not really testing integration where it should.

This PR fixes this issue, and adds calling setUpRedis in QueueTestCase to properly setup Redis Cluster connection.

It also adds jobs order asserts for non-sync queues in JobChainingTest for better behaviour coverage.

Sometimes Redis Cluster was not ready to serve requests at the start of test (previously this problem was not seen, because first tests in list really used sync driver and did not communicated with Redis). Added action to check if cluster is ready before starting tests.

@github-actions
Copy link

github-actions bot commented Nov 3, 2025

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@vadimonus vadimonus force-pushed the queue-tests-missing-connection branch 6 times, most recently from 1eba82a to c5566d8 Compare November 3, 2025 15:30
@vadimonus vadimonus force-pushed the queue-tests-missing-connection branch 2 times, most recently from 6c0f5d2 to d533be3 Compare November 3, 2025 15:49
@vadimonus vadimonus force-pushed the queue-tests-missing-connection branch from d533be3 to 810e909 Compare November 3, 2025 15:54
@vadimonus vadimonus marked this pull request as ready for review November 3, 2025 15:58
@taylorotwell taylorotwell merged commit ca88219 into laravel:12.x Nov 3, 2025
66 checks passed
@vadimonus vadimonus deleted the queue-tests-missing-connection branch November 4, 2025 04:16
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.

2 participants