mirror of https://github.com/openclaw/openclaw.git
test(perf): disable scheduler startup in manual-only cron regressions
This commit is contained in:
parent
3980c315d1
commit
afda085b39
|
|
@ -291,7 +291,7 @@ describe("Cron issue regressions", () => {
|
|||
|
||||
it("repairs missing nextRunAtMs on non-schedule updates without touching other jobs", async () => {
|
||||
const store = await makeStorePath();
|
||||
const cron = await startCronForStore({ storePath: store.storePath });
|
||||
const cron = await startCronForStore({ storePath: store.storePath, cronEnabled: false });
|
||||
|
||||
const created = await cron.add({
|
||||
name: "repair-target",
|
||||
|
|
@ -383,7 +383,7 @@ describe("Cron issue regressions", () => {
|
|||
"utf-8",
|
||||
);
|
||||
|
||||
const cron = await startCronForStore({ storePath: store.storePath });
|
||||
const cron = await startCronForStore({ storePath: store.storePath, cronEnabled: false });
|
||||
|
||||
const listed = await cron.list();
|
||||
expect(listed.some((job) => job.id === "missing-enabled-update")).toBe(true);
|
||||
|
|
@ -670,6 +670,7 @@ describe("Cron issue regressions", () => {
|
|||
|
||||
const cron = await startCronForStore({
|
||||
storePath: store.storePath,
|
||||
cronEnabled: false,
|
||||
runIsolatedAgentJob,
|
||||
});
|
||||
const job = await cron.add({
|
||||
|
|
@ -1252,6 +1253,7 @@ describe("Cron issue regressions", () => {
|
|||
|
||||
const cron = await startCronForStore({
|
||||
storePath: store.storePath,
|
||||
cronEnabled: false,
|
||||
runIsolatedAgentJob: abortAwareRunner.runIsolatedAgentJob,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue