From 3b31c2af66db021f2e07ea941cf3e0d67e35db6c Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Tue, 20 Oct 2026 16:31:58 -0400 Subject: [PATCH] test(ci): reject duplicate burst lock requests --- tests/ci/pr-burst-guard-workflow.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ci/pr-burst-guard-workflow.test.js b/tests/ci/pr-burst-guard-workflow.test.js index e4ce66cef..5c260d6c0 100644 --- a/tests/ci/pr-burst-guard-workflow.test.js +++ b/tests/ci/pr-burst-guard-workflow.test.js @@ -71,6 +71,7 @@ test('actual CLI closes six excess PRs, locks them, blocks with owner identity, await run(); assert.equal(mutations.filter(m => m.route.endsWith('/issues') && m.method === 'POST').length, 1); assert.equal(mutations.filter(m => /\/pulls\/\d+$/.test(m.route)).length, 6); + assert.equal(mutations.filter(m => m.route.endsWith('/lock')).length, 6); assert.equal(new Set(mutations.filter(m => m.route.endsWith('/lock')).map(m => m.route)).size, 6); assert(mutations.some(m => m.route === '/user/blocks/contributor' && m.token === 'Bearer owner-token')); assert(mutations.filter(m => m.route.startsWith('/repos/')).every(m => m.token === 'Bearer moderation-token'));