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', () => {
274
274
const emptyHeaders = await heartbeatService . getHeartbeatsHeader ( ) ;
275
275
expect ( emptyHeaders ) . to . equal ( '' ) ;
276
276
} ) ;
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 ( ) => {
278
278
// Trigger heartbeats until we reach the limit
279
279
const numHeartbeats =
280
280
heartbeatService . _heartbeatsCache ?. heartbeats . length ! ;
@@ -295,7 +295,7 @@ describe('HeartbeatServiceImpl', () => {
295
295
heartbeatService . _heartbeatsCache ?. heartbeats . indexOf ( earliestHeartbeat )
296
296
) . to . equal ( - 1 ) ;
297
297
} ) ;
298
- it ( 'triggerHeartbeat() never exceeds max heartbeats ' , async ( ) => {
298
+ it ( 'triggerHeartbeat() never causes the heartbeat count to exceed the max ' , async ( ) => {
299
299
for ( let i = 0 ; i <= 50 ; i ++ ) {
300
300
await heartbeatService . triggerHeartbeat ( ) ;
301
301
clock . tick ( 24 * 60 * 60 * 1000 ) ;
You can’t perform that action at this time.
0 commit comments