Skip to content
This repository
Browse code

relax time constraint in duration-tck.scala (for Windows VMs)

  • Loading branch information...
commit 3e0fbc0193f0b6f58dc16dae3824677e9902dc7b 1 parent f2be783
Roland Kuhn rkuhn authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 test/files/jvm/duration-tck.scala
5 test/files/jvm/duration-tck.scala
@@ -176,8 +176,9 @@ object Test extends App {
176 176
177 177 Thread.sleep(1.second.toMillis)
178 178
179   - { val l = dead.timeLeft; assert(l <= 1.second, s"$l > 1.second") }
180   - { val l = dead2.timeLeft; assert(l <= 1.second, s"$l > 1.second") }
  179 + // unfortunately it can happen that the sleep() returns early without throwing
  180 + { val l = dead.timeLeft; assert(l <= 1100.millis, s"$l > 1100.millis") }
  181 + { val l = dead2.timeLeft; assert(l <= 1100.millis, s"$l > 1100.millis") }
181 182
182 183
183 184 // test integer mul/div

0 comments on commit 3e0fbc0

Please sign in to comment.
Something went wrong with that request. Please try again.