test: trim timeout-heavy exec and telegram cases

This commit is contained in:
Peter Steinberger
2026-02-16 04:00:53 +00:00
parent 25dc4293bf
commit 83ce48302f
2 changed files with 8 additions and 11 deletions

View File

@@ -69,7 +69,7 @@ describe("createTelegramBot", () => {
globalThis.fetch = originalFetch;
}
});
it("passes timeoutSeconds even without a custom fetch", () => {
it("applies global and per-account timeoutSeconds", () => {
loadConfig.mockReturnValue({
channels: {
telegram: { dmPolicy: "open", allowFrom: ["*"], timeoutSeconds: 60 },
@@ -82,8 +82,8 @@ describe("createTelegramBot", () => {
client: expect.objectContaining({ timeoutSeconds: 60 }),
}),
);
});
it("prefers per-account timeoutSeconds overrides", () => {
botCtorSpy.mockClear();
loadConfig.mockReturnValue({
channels: {
telegram: {