Skip to content
Browse files

memoize the eval object in tests

  • Loading branch information...
1 parent 1635331 commit fec48b5195ba699970f11229bb990ee78f193b69 eaceaser committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/test/scala/com/twitter/gizzard/ConfiguredSpecification.scala
View
6 src/test/scala/com/twitter/gizzard/ConfiguredSpecification.scala
@@ -15,12 +15,14 @@ import testserver.{Priority, TestServer}
import testserver.config.TestServerConfig
+object ConfiguredSpecification {
+ val eval = new Eval
+}
trait ConfiguredSpecification extends Specification {
noDetailedDiffs()
- val eval = new Eval
val config =
- try { eval[gizzard.config.GizzardServer](new File("config/test.scala")) } catch { case e => e.printStackTrace(); throw e }
+ try { ConfiguredSpecification.eval[gizzard.config.GizzardServer](new File("config/test.scala")) } catch { case e => e.printStackTrace(); throw e }
Logger.configure(config.loggers)
}

0 comments on commit fec48b5

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