Skip to content

Commit

Permalink
remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensJourney committed Feb 5, 2024
1 parent 70c2324 commit 3e4bdd4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/basic_native_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,6 @@ void main() {
});
});

test('should not allow direct db calls within a transaction callback',
() async {
final db = await testUtils.setupDatabase(path: path);
await createTables(db);

await db.writeTransaction((tx) async {
await expectLater(() async {
await db.execute(
'INSERT INTO test_data(description) VALUES(?)', ['test']);
}, throwsA((e) => e is LockError && e.message.contains('tx.execute')));
});
});

test('should not allow read-only db calls within transaction callback',
() async {
final db = await testUtils.setupDatabase(path: path);
Expand Down

0 comments on commit 3e4bdd4

Please sign in to comment.