Skip to content

Commit d76860a

Browse files
author
Anna Gringauze
authored
Add printing on failure to web hotrestart tests (#122115)
1 parent 4319015 commit d76860a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/flutter_tools/test/web.shard/hot_reload_web_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ Future<void> _testProject(HotReloadProject project, {String name = 'Default'}) a
4040
});
4141

4242
testWithoutContext('$testName: hot restart works without error', () async {
43+
flutter.stdout.listen(printOnFailure);
4344
await flutter.run(chrome: true, additionalCommandArgs: <String>['--verbose', '--web-renderer=html']);
4445
await flutter.hotRestart();
4546
});
4647

4748
testWithoutContext('$testName: newly added code executes during hot restart', () async {
4849
final Completer<void> completer = Completer<void>();
4950
final StreamSubscription<String> subscription = flutter.stdout.listen((String line) {
51+
printOnFailure(line);
5052
if (line.contains('(((((RELOAD WORKED)))))')) {
5153
completer.complete();
5254
}
@@ -64,6 +66,7 @@ Future<void> _testProject(HotReloadProject project, {String name = 'Default'}) a
6466
testWithoutContext('$testName: newly added code executes during hot restart - canvaskit', () async {
6567
final Completer<void> completer = Completer<void>();
6668
final StreamSubscription<String> subscription = flutter.stdout.listen((String line) {
69+
printOnFailure(line);
6770
if (line.contains('(((((RELOAD WORKED)))))')) {
6871
completer.complete();
6972
}

0 commit comments

Comments
 (0)