fix(ci): Update domain expiry notification days setting (#6559)

This commit is contained in:
Frank Elsinga 2026-01-01 08:13:11 +01:00 committed by GitHub
commit 4a27f921ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,13 +53,12 @@ test("Domain Expiry", async (t) => {
"user_id": 1,
"name": "Testhook"
});
const manyDays = 1500;
setSetting("domainExpiryNotifyDays", [ 7, 14, manyDays ], "general");
const [ notifRet, data ] = await Promise.all([
const manyDays = 3650;
setSetting("domainExpiryNotifyDays", [ manyDays ], "general");
const [ , data ] = await Promise.all([
DomainExpiry.sendNotifications(monHttpCom, [ notif ]),
mockWebhook(hook.port, hook.url)
]);
assert.equal(notifRet, manyDays);
assert.match(data.msg, /will expire in/);
});
}).finally(() => {