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 d8a7308 commit 65feda6
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 65feda6

Please sign in to comment.