Skip to content

Commit 829e253

Browse files
committed
db test: Add missing after.close call
As we add more tests for future migrations, Drift will start complaining about opened databases that are not closed. Always remember doing this will ensure that we don't leak states to other database tests. Signed-off-by: Zixuan James Li <[email protected]>
1 parent dfcc9d0 commit 829e253

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/model/database_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ void main() {
130130
...accountV1.toJson(),
131131
'ackedPushToken': null,
132132
});
133+
await after.close();
133134
});
134135
});
135136
}

0 commit comments

Comments
 (0)