Browse files

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

  • Loading branch information...
1 parent f2be783 commit 3e0fbc0193f0b6f58dc16dae3824677e9902dc7b @rkuhn rkuhn committed Feb 25, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/files/jvm/duration-tck.scala
View
5 test/files/jvm/duration-tck.scala
@@ -176,8 +176,9 @@ object Test extends App {
Thread.sleep(1.second.toMillis)
- { val l = dead.timeLeft; assert(l <= 1.second, s"$l > 1.second") }
- { val l = dead2.timeLeft; assert(l <= 1.second, s"$l > 1.second") }
+ // unfortunately it can happen that the sleep() returns early without throwing
+ { val l = dead.timeLeft; assert(l <= 1100.millis, s"$l > 1100.millis") }
+ { val l = dead2.timeLeft; assert(l <= 1100.millis, s"$l > 1100.millis") }
// test integer mul/div

0 comments on commit 3e0fbc0

Please sign in to comment.