From 048e48cbd7a011c823a83706ed0f991daeb37080 Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Wed, 7 Aug 2024 15:02:45 +0200 Subject: [PATCH] reorder cassandra tests --- ...ndraClientTracingInstrumentationSpec.scala | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) 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 = _