cashapp / misk

Microservice Kontainer

Home Page:https://cashapp.github.io/misk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FakeJobQueue asserts jobs that's deadlettered are acknowledged

jacobch opened this issue · comments

commented

Assuming a job that has deadLettered should not also be acknowledged.

The FakeJobQueue shouldn't check if the job has deadLettered.

if (assertAcknowledged) {
check(job.acknowledged) { "Expected $job to be acknowledged after handling" }
}