From 225f51d3fd361a7a0b0956976bb63a436ec766cb Mon Sep 17 00:00:00 2001 From: Florian Renaud Date: Tue, 14 Feb 2023 12:27:39 +0100 Subject: [PATCH] Update comment wording --- .../java/im/vector/lib/core/utils/timer/CountUpTimerTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core-utils/src/test/java/im/vector/lib/core/utils/timer/CountUpTimerTest.kt b/library/core-utils/src/test/java/im/vector/lib/core/utils/timer/CountUpTimerTest.kt index 547eaa817d..27d07bba66 100644 --- a/library/core-utils/src/test/java/im/vector/lib/core/utils/timer/CountUpTimerTest.kt +++ b/library/core-utils/src/test/java/im/vector/lib/core/utils/timer/CountUpTimerTest.kt @@ -121,7 +121,7 @@ internal class CountUpTimerTest { advanceTimeBy(AN_INTERVAL * 10) // Then - verify(exactly = 2) { timer.stop() } // one call at the first tick, a second time because of the tick on the previous stop action + verify(exactly = 2) { timer.stop() } // one call at the first tick, a second time because of the tick of the first stop verify(exactly = 2) { tickListener.onTick(any()) } // one after reaching the first interval, a second after the stop action } @@ -146,7 +146,7 @@ internal class CountUpTimerTest { advanceTimeBy(AN_INTERVAL * 10) // Then - verify(exactly = 2) { timer.pause() } // one call at the first tick, a second time because of the tick on the previous pause action + verify(exactly = 2) { timer.pause() } // one call at the first tick, a second time because of the tick of the first pause verify(exactly = 2) { tickListener.onTick(any()) } // one after reaching the first interval, a second after the pause action } }