Skip to content

Commit fdbae23

Browse files
committed
test: updated integration test
1 parent 619cdf4 commit fdbae23

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

integration_test/transaction_test.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,15 @@ void main() {
7474

7575
testWidgets('Transaction cancellation prevents execution',
7676
(WidgetTester tester) async {
77+
const somethingWrong = true;
7778
final transactionResult = await db.transaction((txn) async {
7879
txn.query(
7980
r'CREATE test SET name = $name;',
8081
bindings: {'name': 'John'},
8182
);
82-
txn.cancel();
83+
if (somethingWrong) {
84+
txn.cancel();
85+
}
8386
});
8487
expect(
8588
transactionResult,

0 commit comments

Comments
 (0)