Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(e2e): minions authority parity removes its leftover job so later worker tests on the same database start (pre-existing order dependency)
garrytanb35e78bf2473
diff --git a/test/e2e/minions-authority-parity.test.ts b/test/e2e/minions-authority-parity.test.tsindex f98cd108a5..3c2d48a937 100644--- a/test/e2e/minions-authority-parity.test.ts+++ b/test/e2e/minions-authority-parity.test.ts@@ -26,7 +26,12 @@ suite('Postgres queued authority parity', () => {await withEnv({ GBRAIN_HOME: sandbox }, async () => { await setupDB(); await runMigrations(getEngine()); });queue = new MinionQueue(getEngine());}, 120_000);- afterAll(async () => { await teardownDB(); if (sandbox) rmSync(sandbox, { recursive: true, force: true }); });+ afterAll(async () => {+ // Later files on the same database start real workers, which refuse to run while any unreviewed job remains.+ await getEngine().executeRaw('DELETE FROM minion_jobs');+ await teardownDB();+ if (sandbox) rmSync(sandbox, { recursive: true, force: true });+ });beforeEach(async () => {await getEngine().executeRaw('DELETE FROM minion_jobs');await getEngine().executeRaw("DELETE FROM oauth_clients WHERE client_id = 'authority-test-client'");