Skip to content

Commit

Permalink
Skip web test timing out
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Jun 17, 2023
1 parent 9df2ff2 commit 684e642
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sqlite3/test/wasm/sqlite3_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ void main() {
// See worker.dart for the supported backends
for (final backend in ['memory', 'opfs-simple', 'opfs', 'indexeddb']) {
final requiresSab = backend == 'opfs';
final missingSab =
requiresSab && !hasProperty(globalThis, 'SharedArrayBuffer');

test(
backend,
Expand All @@ -103,10 +105,15 @@ void main() {
throw 'Exception in worker: $response';
}
},
skip: requiresSab && !hasProperty(globalThis, 'SharedArrayBuffer')
skip: missingSab
? 'This test requires SharedArrayBuffers that cannot be enabled '
'on this platform with a simple `dart test` setup.'
: null,
onPlatform: {
if (backend == 'opfs')
'chrome || edge':
Skip('todo: Always times out in GitHub actions'),
},
);
}
},
Expand Down

0 comments on commit 684e642

Please sign in to comment.