@@ -10,6 +10,7 @@ import 'utils.dart';
1010void testDatabase (
1111 FutureOr <CommonSqlite3 > Function () loadSqlite, {
1212 bool hasColumnMetadata = false ,
13+ bool hasSharedCache = false ,
1314}) {
1415 late CommonSqlite3 sqlite3;
1516 late CommonDatabase database;
@@ -327,7 +328,7 @@ void testDatabase(
327328 final result = db2.select ('SELECT * FROM tbl' );
328329 expect (result, hasLength (3 ));
329330 },
330- skip: 'Broken with native assets, to investigate ' ,
331+ skip: hasSharedCache ? null : 'Test requires shared cache ' ,
331332 );
332333
333334 test ('locked exceptions' , () {
@@ -343,7 +344,7 @@ void testDatabase(
343344 () => db2.execute ('BEGIN EXCLUSIVE TRANSACTION' ),
344345 throwsSqlError (SqlError .SQLITE_LOCKED , 262 ),
345346 );
346- }, skip: 'Broken with native assets, to investigate ' );
347+ }, skip: hasSharedCache ? null : 'Test requires shared cache ' );
347348
348349 test ('result sets are lists' , () {
349350 final result = database.select ('SELECT 1, 2 UNION ALL SELECT 3, 4;' );
0 commit comments