Skip to content

Commit 60cbc0b

Browse files
committed
db test [nfc]: Add and skip test for downgrading
Signed-off-by: Zixuan James Li <[email protected]>
1 parent 23559d6 commit 60cbc0b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/model/database_test.dart

+7
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ void main() {
9898
verifier = SchemaVerifier(GeneratedHelper());
9999
});
100100

101+
test('downgrading', () async {
102+
final connection = await verifier.startAt(2);
103+
final db = AppDatabase(connection);
104+
await verifier.migrateAndValidate(db, 1);
105+
await db.close();
106+
}, skip: true); // TODO(#1172): unskip this
107+
101108
test('upgrade to v2, empty', () async {
102109
final connection = await verifier.startAt(1);
103110
final db = AppDatabase(connection);

0 commit comments

Comments
 (0)