Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase timeouts for resetting database between StorageBackend tests #11103

Merged
merged 1 commit into from
Oct 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ private[backend] trait StorageBackendSpec
.acquire()
} yield dispatcher

dbDispatcher = Await.result(dbDispatcherResource.asFuture, 30.seconds)
dbDispatcher = Await.result(dbDispatcherResource.asFuture, 60.seconds)
logger.info(
s"Finished setting up database $jdbcUrl for tests. You can now connect to this database to debug failed tests. Note that tables are truncated between each test."
)
}

override protected def afterAll(): Unit = {
Await.result(dbDispatcherResource.release(), 30.seconds)
Await.result(dbDispatcherResource.release(), 60.seconds)
super.afterAll()
}

Expand All @@ -81,7 +81,7 @@ private[backend] trait StorageBackendSpec
runningTests.incrementAndGet() == 1,
"StorageBackendSpec tests must not run in parallel, as they all run against the same database.",
)
Await.result(executeSql(backend.resetAll), 10.seconds)
Await.result(executeSql(backend.resetAll), 60.seconds)
}

override protected def afterEach(): Unit = {
Expand Down