aboutsummaryrefslogtreecommitdiff
path: root/kamon-play/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'kamon-play/src/test')
-rw-r--r--kamon-play/src/test/scala/kamon/play/WSInstrumentationSpec.scala2
1 files changed, 2 insertions, 0 deletions
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)