aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala/kamon/instrumentation/akka/RemotingInstrumentationSpec.scala
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2014-10-19 22:39:24 +0200
committerIvan Topolnjak <ivantopo@gmail.com>2014-10-19 22:39:24 +0200
commit53e63c5ed3de326d8c54aaa261dd7d51aaf071a4 (patch)
treec258cb900e89360745e4feeda324d4e78ae765a4 /kamon-core/src/test/scala/kamon/instrumentation/akka/RemotingInstrumentationSpec.scala
parent1941bd6b82475f6e37b39a2127b616dbc6c2cc8c (diff)
downloadKamon-53e63c5ed3de326d8c54aaa261dd7d51aaf071a4.tar.gz
Kamon-53e63c5ed3de326d8c54aaa261dd7d51aaf071a4.tar.bz2
Kamon-53e63c5ed3de326d8c54aaa261dd7d51aaf071a4.zip
= core: use explicitly thrown exceptions for failure tests.
Diffstat (limited to 'kamon-core/src/test/scala/kamon/instrumentation/akka/RemotingInstrumentationSpec.scala')
-rw-r--r--kamon-core/src/test/scala/kamon/instrumentation/akka/RemotingInstrumentationSpec.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-core/src/test/scala/kamon/instrumentation/akka/RemotingInstrumentationSpec.scala b/kamon-core/src/test/scala/kamon/instrumentation/akka/RemotingInstrumentationSpec.scala
index bc864455..5ce90047 100644
--- a/kamon-core/src/test/scala/kamon/instrumentation/akka/RemotingInstrumentationSpec.scala
+++ b/kamon-core/src/test/scala/kamon/instrumentation/akka/RemotingInstrumentationSpec.scala
@@ -124,7 +124,7 @@ class TraceTokenReplier(creationTraceContextListener: Option[ActorRef]) extends
def receive = {
case "fail" ⇒
- 1 / 0
+ throw new ArithmeticException("Division by zero.")
case "reply-trace-token" ⇒
log.info("Sending back the TT: " + TraceRecorder.currentContext.map(_.token).getOrElse("unavailable"))
sender ! currentTraceContextInfo