From eb7789ca80903a495fcd3315cf37fd00f4c6f866 Mon Sep 17 00:00:00 2001 From: Sisyphus Date: Sun, 3 May 2026 19:28:04 +0000 Subject: [PATCH] test(authority): use supported e2e job Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- tests/e2e/authority-server-primary.mjs | 30 +++++++++++++++----------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/tests/e2e/authority-server-primary.mjs b/tests/e2e/authority-server-primary.mjs index f0d8faa..0669ee5 100644 --- a/tests/e2e/authority-server-primary.mjs +++ b/tests/e2e/authority-server-primary.mjs @@ -232,7 +232,7 @@ await runAuthorityE2eStep("jobs", async () => { const listBefore = await adapter.listPage({ limit: 5 }); assert.ok(Array.isArray(listBefore.jobs)); - const kind = String(context.env.AUTHORITY_E2E_JOB_KIND || "authority.vector.rebuild"); + const kind = String(context.env.AUTHORITY_E2E_JOB_KIND || "delay"); const idempotencyKey = buildAuthorityJobIdempotencyKey({ kind, chatId, @@ -241,17 +241,23 @@ await runAuthorityE2eStep("jobs", async () => { }); const submitted = await adapter.submit( kind, - { - chatId, - collectionId, - namespace, - modelScope: "authority-e2e", - source: "authority-e2e-contract", - purge: false, - dryRun: true, - contractSmoke: true, - idempotencyKey, - }, + kind === "delay" + ? { + durationMs: 10, + message: "Authority E2E job smoke completed", + idempotencyKey, + } + : { + chatId, + collectionId, + namespace, + modelScope: "authority-e2e", + source: "authority-e2e-contract", + purge: false, + dryRun: true, + contractSmoke: true, + idempotencyKey, + }, { idempotencyKey }, ); assert.ok(submitted.id);