From 98d80c5ffe2e1d47ae2f8ee0304058677c576dd5 Mon Sep 17 00:00:00 2001 From: Diego Date: Tue, 9 Sep 2014 23:04:48 -0300 Subject: = play: fix WSInstrumentation tests --- kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kamon-play/src') diff --git a/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala b/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala index 3378d477..46fcb30b 100644 --- a/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala +++ b/kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala @@ -58,6 +58,8 @@ class WSInstrumentationSpec extends WordSpecLike with Matchers with OneServerPer TraceRecorder.finish() }(Akka.system()) + Thread.sleep(1000) // wait to complete the future + val snapshot = takeSnapshotOf("trace-outside-action") snapshot.elapsedTime.numberOfMeasurements should be(1) snapshot.segments.size should be(1) -- cgit v1.2.3