mirror of https://github.com/AMT-Cheif/drift.git
fix: use async syntax to fix timeout when closing database in unit tests (#2459)
Closes #2458
This commit is contained in:
parent
e481f29138
commit
bf8245455c
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue