File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ describe('HeartbeatServiceImpl', () => {
274274 const emptyHeaders = await heartbeatService . getHeartbeatsHeader ( ) ;
275275 expect ( emptyHeaders ) . to . equal ( '' ) ;
276276 } ) ;
277- it ( 'triggerHeartbeat() removes the earliest heartbeat once it exceeds the max number of heartbeats' , async ( ) => {
277+ it ( 'triggerHeartbeat() removes the earliest heartbeat once the max number of heartbeats is exceeded ' , async ( ) => {
278278 // Trigger heartbeats until we reach the limit
279279 const numHeartbeats =
280280 heartbeatService . _heartbeatsCache ?. heartbeats . length ! ;
@@ -295,7 +295,7 @@ describe('HeartbeatServiceImpl', () => {
295295 heartbeatService . _heartbeatsCache ?. heartbeats . indexOf ( earliestHeartbeat )
296296 ) . to . equal ( - 1 ) ;
297297 } ) ;
298- it ( 'triggerHeartbeat() never exceeds max heartbeats ' , async ( ) => {
298+ it ( 'triggerHeartbeat() never causes the heartbeat count to exceed the max ' , async ( ) => {
299299 for ( let i = 0 ; i <= 50 ; i ++ ) {
300300 await heartbeatService . triggerHeartbeat ( ) ;
301301 clock . tick ( 24 * 60 * 60 * 1000 ) ;
You can’t perform that action at this time.
0 commit comments