Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check when error is raised
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
andrewwhitehead committed Jul 18, 2023
1 parent 03b0f4f commit 489e7c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions askar-storage/src/backend/postgres/test_db.rs
Original file line number Diff line number Diff line change
@@ -87,9 +87,11 @@ impl TestDB {
mut inst: Option<AnyBackend>,
) -> Result<(), Error> {
if let Some(lock_txn) = lock_txn.take() {
error!("close lock");
lock_txn.close().await?;
}
if let Some(inst) = inst.take() {
error!("close instance");
timeout(Duration::from_secs(30), inst.close())
.await
.ok_or_else(|| {

0 comments on commit 489e7c3

Please sign in to comment.