From d76860ad60d52f3c87793ae598f2b231f4bb8f0f Mon Sep 17 00:00:00 2001 From: Anna Gringauze Date: Tue, 7 Mar 2023 15:35:00 -0800 Subject: [PATCH] Add printing on failure to web hotrestart tests (#122115) --- packages/flutter_tools/test/web.shard/hot_reload_web_test.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/flutter_tools/test/web.shard/hot_reload_web_test.dart b/packages/flutter_tools/test/web.shard/hot_reload_web_test.dart index ebf23327ac..22d917bb38 100644 --- a/packages/flutter_tools/test/web.shard/hot_reload_web_test.dart +++ b/packages/flutter_tools/test/web.shard/hot_reload_web_test.dart @@ -40,6 +40,7 @@ Future _testProject(HotReloadProject project, {String name = 'Default'}) a }); testWithoutContext('$testName: hot restart works without error', () async { + flutter.stdout.listen(printOnFailure); await flutter.run(chrome: true, additionalCommandArgs: ['--verbose', '--web-renderer=html']); await flutter.hotRestart(); }); @@ -47,6 +48,7 @@ Future _testProject(HotReloadProject project, {String name = 'Default'}) a testWithoutContext('$testName: newly added code executes during hot restart', () async { final Completer completer = Completer(); final StreamSubscription subscription = flutter.stdout.listen((String line) { + printOnFailure(line); if (line.contains('(((((RELOAD WORKED)))))')) { completer.complete(); } @@ -64,6 +66,7 @@ Future _testProject(HotReloadProject project, {String name = 'Default'}) a testWithoutContext('$testName: newly added code executes during hot restart - canvaskit', () async { final Completer completer = Completer(); final StreamSubscription subscription = flutter.stdout.listen((String line) { + printOnFailure(line); if (line.contains('(((((RELOAD WORKED)))))')) { completer.complete(); }