@@ -784,7 +784,7 @@ void main() {
784784 ProcessManager : () => processManager,
785785 }));
786786
787- test ('Generated service worker is empty with none-strategy' , () {
787+ test ('Generated service worker is empty with none-strategy' , () => testbed. run (() {
788788 final String fileGeneratorsPath =
789789 environment.artifacts.getArtifactPath (Artifact .flutterToolsFileGenerators);
790790 final String result = generateServiceWorker (
@@ -795,9 +795,9 @@ void main() {
795795 );
796796
797797 expect (result, '' );
798- });
798+ })) ;
799799
800- test ('Generated service worker correctly inlines file hashes' , () {
800+ test ('Generated service worker correctly inlines file hashes' , () => testbed. run (() {
801801 final String fileGeneratorsPath =
802802 environment.artifacts.getArtifactPath (Artifact .flutterToolsFileGenerators);
803803 final String result = generateServiceWorker (
@@ -808,9 +808,9 @@ void main() {
808808 );
809809
810810 expect (result, contains ('{"/foo": "abcd"};' ));
811- });
811+ })) ;
812812
813- test ('Generated service worker includes core files' , () {
813+ test ('Generated service worker includes core files' , () => testbed. run (() {
814814 final String fileGeneratorsPath =
815815 environment.artifacts.getArtifactPath (Artifact .flutterToolsFileGenerators);
816816 final String result = generateServiceWorker (
@@ -821,7 +821,7 @@ void main() {
821821 );
822822
823823 expect (result, contains ('"foo",\n "bar"' ));
824- });
824+ })) ;
825825
826826 test ('WebServiceWorker generates a service_worker for a web resource folder' , () => testbed.run (() async {
827827 environment.outputDir.childDirectory ('a' ).childFile ('a.txt' )
@@ -874,7 +874,7 @@ void main() {
874874 contains ('"main.dart.js"' ));
875875 }));
876876
877- test ('flutter.js sanity checks' , () {
877+ test ('flutter.js sanity checks' , () => testbed. run (() {
878878 final String fileGeneratorsPath = environment.artifacts
879879 .getArtifactPath (Artifact .flutterToolsFileGenerators);
880880 final String flutterJsContents =
@@ -887,7 +887,7 @@ void main() {
887887 expect (flutterJsContents, contains ('const baseUri = ' ));
888888 expect (flutterJsContents, contains ('document.querySelector("base")' ));
889889 expect (flutterJsContents, contains ('.getAttribute("href")' ));
890- });
890+ })) ;
891891
892892 test ('flutter.js is not dynamically generated' , () => testbed.run (() async {
893893 globals.fs.file ('bin/cache/flutter_web_sdk/canvaskit/foo' )
0 commit comments