merge: include latest orchestrator worker alignment

This commit is contained in:
john
2026-07-25 00:10:19 +08:00
2 changed files with 3 additions and 0 deletions
@@ -57,6 +57,7 @@ test('Goosed adapter uses the current session API, streams bounded metadata and
]);
}
if (url.endsWith('/reply')) return Response.json({ ok: true });
if (url.endsWith('/status')) return Response.json({ ok: true });
throw new Error(`Unexpected URL: ${url}`);
},
});
@@ -83,6 +84,7 @@ test('Goosed adapter uses the current session API, streams bounded metadata and
],
);
assert.equal(JSON.stringify(emitted).includes('not-projected'), false);
assert.deepEqual(await adapter.health(), { ok: true, status: 200 });
});
test('Goosed adapter rejects remote targets unless explicitly allowed', () => {
@@ -85,6 +85,7 @@ test('worker runtime claims, executes, emits progress and completes through leas
client.calls.map((call) => call[0]),
['claim', 'start', 'progress', 'complete'],
);
assert.deepEqual(client.calls[0][1].adapterHealth, { goosed: { ok: true } });
assert.equal(client.calls.at(-1)[2].leaseToken, 'lease-1');
assert.deepEqual(worker.status().activeJobs, []);
});