mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-20 18:42:24 +00:00
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:
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)),
|
||||
|
||||
Reference in new issue
Block a user