Right now the tests assume that claim will never return nil if there are any tasks still available to claim.
The reality is (this was explained by @aphyr in #80) that with an AP queue it is expected behavior that sometimes claim will return nil even though there is theoretically work still to be done.
Because of that, we need to update the tests to continue trying to claim until some period of time has passed instead of relying on a nil response.
Right now the tests assume that
claimwill never returnnilif there are any tasks still available to claim.The reality is (this was explained by @aphyr in #80) that with an AP queue it is expected behavior that sometimes
claimwill returnnileven though there is theoretically work still to be done.Because of that, we need to update the tests to continue trying to
claimuntil some period of time has passed instead of relying on anilresponse.