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