fix: use async syntax to fix timeout when closing database in unit tests (#2459)

Closes #2458
This commit is contained in:
Tautvydas Šidlauskas 2023-06-05 23:50:06 +03:00 committed by GitHub
parent e481f29138
commit bf8245455c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ abstract class Sqlite3Delegate<DB extends CommonDatabase>
@override @override
@mustCallSuper @mustCallSuper
Future<void> close() { Future<void> close() async {
return Future(_preparedStmtsCache.disposeAll); _preparedStmtsCache.disposeAll();
} }
/// Synchronously prepares and runs [statements] collected from a batch. /// Synchronously prepares and runs [statements] collected from a batch.