From e53f7943c7eb1221e660024f292c296797ab1525 Mon Sep 17 00:00:00 2001 From: Diego Date: Wed, 23 Apr 2014 22:23:17 -0300 Subject: + play: fix WSIntrumentation --- kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kamon-play/src/test') diff --git a/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala b/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala index ee51d07d..f76b20b8 100644 --- a/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala +++ b/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala @@ -35,7 +35,7 @@ class WSInstrumentationSpec extends PlaySpecification { System.setProperty("config.file", "./kamon-play/src/test/resources/conf/application.conf") - val appWithRoutes = FakeApplication(withRoutes = { + def appWithRoutes = FakeApplication(withRoutes = { case ("GET", "/async") ⇒ Action { val request = WS.url("http://maps.googleapis.com/maps/api/geocode/json?address=China&sensor=true").get() @@ -63,4 +63,4 @@ class WSInstrumentationSpec extends PlaySpecification { Thread.sleep(2000) //wait to complete the future } } -} \ No newline at end of file +} \ No newline at end of file -- cgit v1.2.3