Skip to content

Commit

Permalink
tests: update the test case to match new max value between heartbeats
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Oct 26, 2023
1 parent 210bf32 commit 7d0fc02
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ internal class HeartbeatIntervalCalculatorTest {
// surpass MAX_TIME_BETWEEN_HEARTBEATS
// (currentTime + offset) * backoff = max
// currentTime = (max / backoff) - offset, so
// (1 hour / 0.3) - 35 seconds = 11965 seconds. Add 1 second to be over the limit.
val excessiveTime = 11965.seconds + 1.seconds
// (15 minutes / 0.3) - 35 seconds = 2965 seconds. Add 1 second to be over the limit
val excessiveTime = 2965.seconds + 1.seconds
fakeClock.fakeNow = excessiveTime
val startTime = Calendar.getInstance().apply {
timeInMillis = 0
Expand Down

0 comments on commit 7d0fc02

Please sign in to comment.