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
@mustCallSuper
Future<void> close() {
return Future(_preparedStmtsCache.disposeAll);
Future<void> close() async {
_preparedStmtsCache.disposeAll();
}
/// Synchronously prepares and runs [statements] collected from a batch.