Skip to content

Commit

Permalink
reorder cassandra tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivantopo committed Aug 7, 2024
1 parent 717a274 commit 048e48c
Showing 1 changed file with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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 = _
Expand Down

0 comments on commit 048e48c

Please sign in to comment.