Skip to content

Commit

Permalink
fix: Update test assertions and exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar committed Dec 14, 2023
1 parent 5e63916 commit bb1d149
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class StreamingBodyDatabasePoolHealthTest : ProjectAuthControllerTest("/v2/proje
fun `streaming responses do not cause a database connection pool exhaustion`() {
retry(
retries = 10,
exceptionMatcher = { getRootCause(it) is ConcurrentModificationException }
exceptionMatcher = { getRootCause(it) is ConcurrentModificationException || it is IllegalStateException }
) {
val hikariDataSource = dataSource as HikariDataSource
val pool = hikariDataSource.hikariPoolMXBean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ class KeyControllerKeySearchTest : ProjectAuthControllerTest("/v2/projects/"), L
executeInNewTransaction {
val time = measureTimeMillis {
performProjectAuthGet("keys/search?search=dol&languageTag=de").andAssertThatJson {
node("page.totalElements").isNumber.isGreaterThan(2000.toBigDecimal())
node("page.totalElements").isNumber.isGreaterThan(4000.toBigDecimal())
}.andPrettyPrint
}
Expand Down

0 comments on commit bb1d149

Please sign in to comment.