Skip to content

Open-source document signature platform. Not affiliated with DocuSign.

TypeScript

Test the support address change with a stale settings cache

Claude2bacf4838c11
diff --git a/src/lib/consent-disclosure.dbtest.ts b/src/lib/consent-disclosure.dbtest.ts
index 8de3838..4a12f74 100644
--- a/src/lib/consent-disclosure.dbtest.ts
+++ b/src/lib/consent-disclosure.dbtest.ts
@@ -220,7 +220,8 @@ test("a change to the support address after the page loaded is refused too", asy
await database.query(
"update public.app_settings set support_address = '[email protected]' where id",
);
- invalidateSettingsCache();
+ // The settings cache in this process still holds the old address, as
+ // another server instance would. The signing page must not use it.
const afterChange = await getSigningPayloadForToken(token, { database });