Fix worker test (#4156)

* PUT-2012 fix broadcast service drops

* Revert pre-commit lint churn on files merged from main

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix test bug

* Remove other test

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Neal ShahandClaude Opus 5.5 authored and GitHub committed 2026-10-13 14:10:10 -04:00
1 parent 62270ff9aa
commit 4401b4c4dc
1 file changed
+6 -1
@@ -998,8 +998,13 @@ describe('WorkerDriver keeps a worker`s token tied to the worker', () => {
it('deleting the source file deletes the worker`s session', async () => {
const { user, actor, entry, name } = await deployWorker('srcdel');
// Resolved at delete time, as every caller does: the entry names the
// workers bound to it.
const current = await server.stores.fsEntry.getEntryByUuid(entry.uuid);
await inCtx(actor, () => server.services.fs.remove(user.id, { entry }));
await inCtx(actor, () =>
server.services.fs.remove(user.id, { entry: current! }),
);
await waitFor(
async () => !(await workerSession(user.id, name)),