Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes https://app.circleci.com/pipelines/github/DataDog/dd-trace-rb/1691/workflows/ebaf9777-0229-49e2-9172-438841cea5d4/jobs/81378:
This error happens because
SuckerPunch::Job#perform_in
schedules the job to be performed and then checks if the job status is:pending
right before returning. If the job finishes too quickly, it might have already been moved into a:fulfilled
, thus making#perform_in
return false.This PR does not verify the return value of
#perform_in
anymore, as it is unimportant to our tests, but maintains the verification that the job has finished and that the correct spans have been generated.