Skip to content

Commit

Permalink
gh actions weirdness with duplicate creates ?!
Browse files Browse the repository at this point in the history
concurrency working differently there?!
  • Loading branch information
jillesvangurp committed Jan 5, 2024
1 parent cb5ed88 commit ba58e0e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/test/kotlin/com/tryformation/pgdocstore/DbTestBase.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,9 @@ open class DbTestBase {
fun beforeAll() = coRun {
// all tests in the same class have the same table
tableName = "docs_${Random.nextULong()}"
db.reCreateDocStoreTable(tableName)
db.createDocStoreTable(tableName)
}

@AfterAll
fun afterAll() = coRun {
db.dropDocStoreTable(tableName)
}


fun coRun(timeout: Duration = 1.minutes, block: suspend () -> Unit) {
runBlocking {
withTimeout(timeout) {
Expand Down

0 comments on commit ba58e0e

Please sign in to comment.