test: stabilize gateway tests

This commit is contained in:
Peter Steinberger
2026-01-04 04:16:38 +01:00
parent 3c4c2aa98c
commit 24aa3e3311
21 changed files with 192 additions and 104 deletions

View File

@@ -1,8 +1,8 @@
import type { CronJobCreate, CronJobPatch } from "../../cron/types.js";
import {
readCronRunLogEntries,
resolveCronRunLogPath,
} from "../../cron/run-log.js";
import type { CronJobCreate, CronJobPatch } from "../../cron/types.js";
import {
ErrorCodes,
errorShape,
@@ -102,7 +102,10 @@ export const cronHandlers: GatewayRequestHandlers = {
id: string;
patch: Record<string, unknown>;
};
const job = await context.cron.update(p.id, p.patch as unknown as CronJobPatch);
const job = await context.cron.update(
p.id,
p.patch as unknown as CronJobPatch,
);
respond(true, job, undefined);
},
"cron.remove": async ({ params, respond, context }) => {