diff --git a/instrumentation/kamon-cassandra/src/testCas3/scala/kamon/instrumentation/instrumentation/CassandraClientTracingInstrumentationSpec.scala b/instrumentation/kamon-cassandra/src/testCas3/scala/kamon/instrumentation/instrumentation/CassandraClientTracingInstrumentationSpec.scala index 247ef207e..1c53abb49 100644 --- a/instrumentation/kamon-cassandra/src/testCas3/scala/kamon/instrumentation/instrumentation/CassandraClientTracingInstrumentationSpec.scala +++ b/instrumentation/kamon-cassandra/src/testCas3/scala/kamon/instrumentation/instrumentation/CassandraClientTracingInstrumentationSpec.scala @@ -77,24 +77,6 @@ class CassandraClientTracingInstrumentationSpec } } - "not swallow exceptions" in { - val query = QueryBuilder - .select("name") - .from("illegaltablename") - .where(QueryBuilder.eq("name", "kamon")) - .allowFiltering() - .setFetchSize(5) - - assertThrows[DriverException] { - session.execute(query) - } - - eventually(timeout(10 seconds)) { - val span = testSpanReporter().nextSpan() - span should not be empty - } - } - "trace individual page executions" in { val query = QueryBuilder .select("name") @@ -118,6 +100,24 @@ class CassandraClientTracingInstrumentationSpec clientSpan.get.tags.get(plainBoolean("cassandra.driver.rs.has-more")) shouldBe true } } + + "not swallow exceptions" in { + val query = QueryBuilder + .select("name") + .from("illegaltablename") + .where(QueryBuilder.eq("name", "kamon")) + .allowFiltering() + .setFetchSize(5) + + assertThrows[DriverException] { + session.execute(query) + } + + eventually(timeout(10 seconds)) { + val span = testSpanReporter().nextSpan() + span should not be empty + } + } } var session: Session = _