Skip to content

Commit

Permalink
fix: StreamingBodyDatabasePoolHealthTest.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar committed Dec 22, 2023
1 parent e25c5a9 commit b19ea6e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import com.zaxxer.hikari.HikariDataSource
import io.tolgee.development.testDataBuilder.data.TranslationsTestData
import io.tolgee.fixtures.andIsOk
import io.tolgee.fixtures.retry
import io.tolgee.fixtures.waitForNotThrowing
import io.tolgee.testing.annotations.ProjectJWTAuthTestMethod
import io.tolgee.testing.assert
import org.junit.jupiter.api.BeforeEach
Expand Down Expand Up @@ -73,7 +74,9 @@ class StreamingBodyDatabasePoolHealthTest : ProjectAuthControllerTest("/v2/proje
performProjectAuthGet("export").andIsOk
Thread.sleep(sleepBetweenMs)
}
pool.idleConnections.assert.isGreaterThan(90)
waitForNotThrowing(pollTime = 50, timeout = 5000) {
pool.idleConnections.assert.isGreaterThan(90)
}
} finally {
sleepBetweenMs += 10
}
Expand Down

0 comments on commit b19ea6e

Please sign in to comment.