test(gateway): tolerate loaded auth rotation close

This commit is contained in:
Peter Steinberger
2026-05-02 12:23:38 +01:00
parent 40f2bf3950
commit 15f2cebc3e

View File

@@ -217,7 +217,7 @@ describe("gateway shared auth rotation with unchanged SecretRefs", () => {
it("disconnects shared-auth websocket sessions when config.apply rewrites a SecretRef token", async () => {
const ws = await openSecretRefAuthenticatedWs();
try {
const closed = waitForGatewayWsClose(ws);
const closed = waitForGatewayWsClose(ws, 30_000);
process.env[SECRET_REF_TOKEN_ID] = NEW_TOKEN;
const res = await applyCurrentConfig(ws);
expect(res.ok).toBe(true);