mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 23:14:31 +00:00
test(perf): tighten cron regression timeout constants
This commit is contained in:
@@ -20,7 +20,7 @@ const noopLogger = {
|
|||||||
trace: vi.fn(),
|
trace: vi.fn(),
|
||||||
};
|
};
|
||||||
const TOP_OF_HOUR_STAGGER_MS = 5 * 60 * 1_000;
|
const TOP_OF_HOUR_STAGGER_MS = 5 * 60 * 1_000;
|
||||||
const FAST_TIMEOUT_SECONDS = 0.006;
|
const FAST_TIMEOUT_SECONDS = 0.004;
|
||||||
type CronServiceOptions = ConstructorParameters<typeof CronService>[0];
|
type CronServiceOptions = ConstructorParameters<typeof CronService>[0];
|
||||||
|
|
||||||
function topOfHourOffsetMs(jobId: string) {
|
function topOfHourOffsetMs(jobId: string) {
|
||||||
@@ -1523,7 +1523,7 @@ describe("Cron issue regressions", () => {
|
|||||||
|
|
||||||
// Keep this short for suite speed while still separating expected timeout
|
// Keep this short for suite speed while still separating expected timeout
|
||||||
// from the 1/3-regression timeout.
|
// from the 1/3-regression timeout.
|
||||||
const timeoutSeconds = 0.03;
|
const timeoutSeconds = 0.02;
|
||||||
const cronJob = createIsolatedRegressionJob({
|
const cronJob = createIsolatedRegressionJob({
|
||||||
id: "timeout-fraction-29774",
|
id: "timeout-fraction-29774",
|
||||||
name: "timeout fraction regression",
|
name: "timeout fraction regression",
|
||||||
|
|||||||
Reference in New Issue
Block a user