Skip to content

Commit

Permalink
Make CachedHashingSpec more lenient
Browse files Browse the repository at this point in the history
Fixes #552

The 20% assersion is failing often.
  • Loading branch information
eed3si9n committed Jun 18, 2018
1 parent 182356e commit 2590468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zinc/src/test/scala/sbt/inc/cached/CachedHashingSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ class CachedHashingSpec extends BaseCompilerSpec {

val hashingTime = timeMs(genConfig)
val cachedHashingTime = timeMs(genConfig)
assert(cachedHashingTime < (hashingTime * 0.20),
s"Cache jar didn't work: $cachedHashingTime is >= than 20% of $hashingTime.")
assert(cachedHashingTime < (hashingTime * 0.50),
s"Cache jar didn't work: $cachedHashingTime is >= than 50% of $hashingTime.")
}
}

Expand Down

0 comments on commit 2590468

Please sign in to comment.