@@ -1301,7 +1301,7 @@ describe("cron service timer regressions", () => {
13011301 }
13021302 } ) ;
13031303
1304- it ( "notifies setup-timeout restart after startup catch-up finalization" , async ( ) => {
1304+ it ( "notifies setup timeout after startup catch-up finalization" , async ( ) => {
13051305 vi . useFakeTimers ( ) ;
13061306 try {
13071307 const store = timerRegressionFixtures . makeStorePath ( ) ;
@@ -1926,7 +1926,7 @@ describe("cron service timer regressions", () => {
19261926 expect ( jobs . find ( ( job ) => job . id === second . id ) ?. state . lastStatus ) . toBe ( "ok" ) ;
19271927 } ) ;
19281928
1929- 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 ( ) => {
19301930 vi . useFakeTimers ( ) ;
19311931 try {
19321932 const store = timerRegressionFixtures . makeStorePath ( ) ;
@@ -1990,7 +1990,7 @@ describe("cron service timer regressions", () => {
19901990 }
19911991 } ) ;
19921992
1993- 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 ( ) => {
19941994 vi . useFakeTimers ( ) ;
19951995 try {
19961996 const store = timerRegressionFixtures . makeStorePath ( ) ;
@@ -2058,7 +2058,7 @@ describe("cron service timer regressions", () => {
20582058 }
20592059 } ) ;
20602060
2061- 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 ( ) => {
20622062 vi . useFakeTimers ( ) ;
20632063 try {
20642064 const store = timerRegressionFixtures . makeStorePath ( ) ;
@@ -2128,7 +2128,7 @@ describe("cron service timer regressions", () => {
21282128 }
21292129 } ) ;
21302130
2131- it ( "suppresses scheduled rearm after manual setup- timeout restart request " , async ( ) => {
2131+ it ( "rearms scheduled jobs after manual setup timeout notification " , async ( ) => {
21322132 vi . useFakeTimers ( ) ;
21332133 try {
21342134 const store = timerRegressionFixtures . makeStorePath ( ) ;
@@ -2179,8 +2179,8 @@ describe("cron service timer regressions", () => {
21792179 await vi . advanceTimersByTimeAsync ( 1 ) ;
21802180
21812181 expect ( 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 ( ) ;
21842184 expect ( scheduledStarted ) . not . toHaveBeenCalled ( ) ;
21852185 } finally {
21862186 vi . useRealTimers ( ) ;
@@ -2352,7 +2352,7 @@ describe("cron service timer regressions", () => {
23522352 ) . toBe ( replacementReservationMs ) ;
23532353 } ) ;
23542354
2355- 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 ( ) => {
23562356 vi . useFakeTimers ( ) ;
23572357 try {
23582358 const store = timerRegressionFixtures . makeStorePath ( ) ;
@@ -2419,14 +2419,14 @@ describe("cron service timer regressions", () => {
24192419 await vi . advanceTimersByTimeAsync ( 60_100 ) ;
24202420 now += 60_100 ;
24212421 await manualRun ;
2422- expect ( state . restartRecoveryPending ) . toBe ( true ) ;
2422+ expect ( state . restartRecoveryPending ) . toBe ( false ) ;
24232423
24242424 finishFirstScheduled . resolve ( ) ;
24252425 await timerRun ;
24262426
24272427 const second = requireJob ( state , secondScheduledJob . id ) ;
24282428 expect ( onIsolatedAgentSetupTimeout ) . toHaveBeenCalledTimes ( 1 ) ;
2429- expect ( secondScheduledStarted ) . not . toHaveBeenCalled ( ) ;
2429+ expect ( secondScheduledStarted ) . toHaveBeenCalledWith ( secondScheduledJob . id ) ;
24302430 expect ( second . state . runningAtMs ) . toBeUndefined ( ) ;
24312431 } finally {
24322432 vi . useRealTimers ( ) ;
@@ -2794,7 +2794,7 @@ describe("cron service timer regressions", () => {
27942794 }
27952795 } ) ;
27962796
2797- 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 ( ) => {
27982798 vi . useFakeTimers ( ) ;
27992799 try {
28002800 const store = timerRegressionFixtures . makeStorePath ( ) ;
@@ -2854,7 +2854,7 @@ describe("cron service timer regressions", () => {
28542854 }
28552855 } ) ;
28562856
2857- 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 ( ) => {
28582858 vi . useFakeTimers ( ) ;
28592859 try {
28602860 const store = timerRegressionFixtures . makeStorePath ( ) ;
0 commit comments