refactor(planning): drop the unreachable late worker message guard
release() already clears the worker handlers, so the released checks inside them could never run. The lifetime test now states what it checks: no handler is left for late messages. Refs #277 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
502d561f6f
commit
43677ff434
2 files changed
+3
-3
No files matched your search
@@ -128,7 +128,7 @@ describe('worker job lifetime', () => {
|
||||
expect(worker.onerror).toBeNull();
|
||||
};
|
||||
|
||||
it('releases the worker once on success and ignores late messages', async () => {
|
||||
it('releases the worker once on success and leaves no handler for late messages', async () => {
|
||||
const job = await start({});
|
||||
job.deliver();
|
||||
expect(await job.succeeded).toBe(true);
|
||||
|
||||
Reference in new issue
Block a user