We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a0b75d commit 3443ad8Copy full SHA for 3443ad8
sqlite3/test/common/database.dart
@@ -883,6 +883,16 @@ void testDatabase(
883
database.execute("COMMIT;");
884
});
885
886
+ test('is async', () async {
887
+ var commits = 0;
888
+ database.commits.listen((_) => commits++);
889
+
890
+ database.execute("INSERT INTO tbl VALUES ('', 1);");
891
+ expect(commits, 0);
892
+ await pumpEventQueue();
893
+ expect(commits, 1);
894
+ });
895
896
test('does not emit on implicit commit with commitFilter false', () async {
897
expect(database.commits, neverEmits(anything));
898
database.commitFilter = () => false;
0 commit comments