@@ -208,10 +208,10 @@ describe("DurableObjectQueue", () => {
208208
209209 it ( "should add an alarm if there are failed states" , async ( ) => {
210210 const queue = createDurableObjectQueue ( { fetchDuration : 10 } ) ;
211- const nextAlarm = Date . now ( ) + 1000 ;
212- queue . routeInFailedState . set ( "id" , { msg : createMessage ( "id" ) , retryCount : 0 , nextAlarmMs : nextAlarm } ) ;
211+ const nextAlarmMs = Date . now ( ) + 1000 ;
212+ queue . routeInFailedState . set ( "id" , { msg : createMessage ( "id" ) , retryCount : 0 , nextAlarmMs } ) ;
213213 await queue . addAlarm ( ) ;
214- expect ( getStorage ( queue ) . setAlarm ) . toHaveBeenCalledWith ( nextAlarm ) ;
214+ expect ( getStorage ( queue ) . setAlarm ) . toHaveBeenCalledWith ( nextAlarmMs ) ;
215215 } ) ;
216216
217217 it ( "should not add an alarm if there is already an alarm set" , async ( ) => {
@@ -225,9 +225,9 @@ describe("DurableObjectQueue", () => {
225225
226226 it ( "should set the alarm to the lowest nextAlarm" , async ( ) => {
227227 const queue = createDurableObjectQueue ( { fetchDuration : 10 } ) ;
228- const nextAlarm = Date . now ( ) + 1000 ;
228+ const nextAlarmMs = Date . now ( ) + 1000 ;
229229 const firstAlarm = Date . now ( ) + 500 ;
230- queue . routeInFailedState . set ( "id" , { msg : createMessage ( "id" ) , retryCount : 0 , nextAlarmMs : nextAlarm } ) ;
230+ queue . routeInFailedState . set ( "id" , { msg : createMessage ( "id" ) , retryCount : 0 , nextAlarmMs } ) ;
231231 queue . routeInFailedState . set ( "id2" , {
232232 msg : createMessage ( "id2" ) ,
233233 retryCount : 0 ,
0 commit comments