Skip to content

Commit

Permalink
Attempt to fix TimerTextTest in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLongstaff committed Jan 9, 2025
1 parent 4f4b556 commit 415bc3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/test/kotlin/artemis/agent/util/TimerTextTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ import kotlin.time.Duration.Companion.seconds
class TimerTextTest :
DescribeSpec({
describe("TimerText") {
val underOneHour = Arb.duration(0.seconds..(1.hours - 1.5.seconds))
val overOneHour = Arb.duration(1.hours..(100.hours - 1.5.seconds))
val tolerance = 0.5.seconds
val underOneHour = Arb.duration(0.seconds..(1.hours - tolerance))
val overOneHour = Arb.duration((1.hours + tolerance)..(100.hours - tolerance))

val minutesPerHour = 1.hours.inWholeMinutes
val secondsPerMinute = 1.minutes.inWholeSeconds
Expand Down

0 comments on commit 415bc3e

Please sign in to comment.