Skip to content

Conversation

@jaredpelliott
Copy link
Contributor

@jaredpelliott jaredpelliott commented Dec 19, 2018

A queue job that just implements the queue job contract causes 5 test failures in QueueWorkerTest. This is due to the contract missing the following 3 methods: markAsFailed(), hasFailed(), and isReleased(). The first commit shows the problem and the next three add the missing methods, one at a time, causing the failing tests to progressively start passing again until they all do.

@jaredpelliott jaredpelliott changed the title Fix missing methods in queue job contract [5.7] Fix missing methods in queue job contract Dec 19, 2018
@X-Coder264
Copy link
Contributor

Adding a method to an interface is a breaking change and as such this PR should target the master branch (Laravel 5.8).

@jaredpelliott
Copy link
Contributor Author

Thanks! I'll fix that

@jaredpelliott jaredpelliott force-pushed the add-missing-methods-to-queue-job-contract branch from 7cd942f to c7cbd6d Compare December 19, 2018 15:40
@jaredpelliott jaredpelliott changed the base branch from 5.7 to master December 19, 2018 15:41
@jaredpelliott jaredpelliott changed the title [5.7] Fix missing methods in queue job contract [5.8] Fix missing methods in queue job contract Dec 19, 2018
@jaredpelliott jaredpelliott reopened this Dec 19, 2018
@jaredpelliott jaredpelliott reopened this Dec 19, 2018
@taylorotwell taylorotwell merged commit 59838f8 into laravel:master Dec 20, 2018
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.

3 participants