




















@@ -1301,7 +1301,7 @@ describe("cron service timer regressions", () => {
13011301}
13021302});
130313031304-it("notifies setup-timeout restart after startup catch-up finalization", async () => {
1304+it("notifies setup timeout after startup catch-up finalization", async () => {
13051305vi.useFakeTimers();
13061306try {
13071307const store = timerRegressionFixtures.makeStorePath();
@@ -1926,7 +1926,7 @@ describe("cron service timer regressions", () => {
19261926expect(jobs.find((job) => job.id === second.id)?.state.lastStatus).toBe("ok");
19271927});
192819281929-it("requests one setup-timeout restart when a concurrent cron batch stalls before runners start", async () => {
1929+it("sends one setup-timeout notification when a concurrent cron batch stalls before runners start", async () => {
19301930vi.useFakeTimers();
19311931try {
19321932const store = timerRegressionFixtures.makeStorePath();
@@ -1990,7 +1990,7 @@ describe("cron service timer regressions", () => {
19901990}
19911991});
199219921993-it("requests setup-timeout restart after a prior serial cron job completes", async () => {
1993+it("sends setup-timeout notification after a prior serial cron job completes", async () => {
19941994vi.useFakeTimers();
19951995try {
19961996const store = timerRegressionFixtures.makeStorePath();
@@ -2058,7 +2058,7 @@ describe("cron service timer regressions", () => {
20582058}
20592059});
206020602061-it("requests setup-timeout restart when manual and scheduled runs both stall", async () => {
2061+it("sends setup-timeout notification when manual and scheduled runs both stall", async () => {
20622062vi.useFakeTimers();
20632063try {
20642064const store = timerRegressionFixtures.makeStorePath();
@@ -2128,7 +2128,7 @@ describe("cron service timer regressions", () => {
21282128}
21292129});
213021302131-it("suppresses scheduled rearm after manual setup-timeout restart request", async () => {
2131+it("rearms scheduled jobs after manual setup timeout notification", async () => {
21322132vi.useFakeTimers();
21332133try {
21342134const store = timerRegressionFixtures.makeStorePath();
@@ -2179,8 +2179,8 @@ describe("cron service timer regressions", () => {
21792179await vi.advanceTimersByTimeAsync(1);
2180218021812181expect(onIsolatedAgentSetupTimeout).toHaveBeenCalledTimes(1);
2182-expect(state.restartRecoveryPending).toBe(true);
2183-expect(state.timer).toBeNull();
2182+expect(state.restartRecoveryPending).toBe(false);
2183+expect(state.timer).not.toBeNull();
21842184expect(scheduledStarted).not.toHaveBeenCalled();
21852185} finally {
21862186vi.useRealTimers();
@@ -2352,7 +2352,7 @@ describe("cron service timer regressions", () => {
23522352).toBe(replacementReservationMs);
23532353});
235423542355-it("stops an active scheduled batch from claiming more jobs after manual setup-timeout recovery", async () => {
2355+it("continues an active scheduled batch after manual setup-timeout notification", async () => {
23562356vi.useFakeTimers();
23572357try {
23582358const store = timerRegressionFixtures.makeStorePath();
@@ -2419,14 +2419,14 @@ describe("cron service timer regressions", () => {
24192419await vi.advanceTimersByTimeAsync(60_100);
24202420now += 60_100;
24212421await manualRun;
2422-expect(state.restartRecoveryPending).toBe(true);
2422+expect(state.restartRecoveryPending).toBe(false);
2423242324242424finishFirstScheduled.resolve();
24252425await timerRun;
2426242624272427const second = requireJob(state, secondScheduledJob.id);
24282428expect(onIsolatedAgentSetupTimeout).toHaveBeenCalledTimes(1);
2429-expect(secondScheduledStarted).not.toHaveBeenCalled();
2429+expect(secondScheduledStarted).toHaveBeenCalledWith(secondScheduledJob.id);
24302430expect(second.state.runningAtMs).toBeUndefined();
24312431} finally {
24322432vi.useRealTimers();
@@ -2794,7 +2794,7 @@ describe("cron service timer regressions", () => {
27942794}
27952795});
279627962797-it("does not request setup-timeout restart for cron-nested lane contention", async () => {
2797+it("does not notify setup timeout for cron-nested lane contention", async () => {
27982798vi.useFakeTimers();
27992799try {
28002800const store = timerRegressionFixtures.makeStorePath();
@@ -2854,7 +2854,7 @@ describe("cron service timer regressions", () => {
28542854}
28552855});
285628562857-it("does not notify setup-timeout restart for custom-session cron waits", async () => {
2857+it("does not notify setup timeout for custom-session cron waits", async () => {
28582858vi.useFakeTimers();
28592859try {
28602860const store = timerRegressionFixtures.makeStorePath();
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。