[flutter_test] handle breaking change to test main (#67425)

* [flutter_test] handle breaking change to test main . Fixes #67382
This commit is contained in:
Jonah Williams
2020-10-06 16:52:23 -07:00
committed by GitHub
parent 8d923bf9a7
commit ef6c720d40
8 changed files with 8 additions and 8 deletions

View File

@@ -7,7 +7,7 @@ import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
Future<void> main(FutureOr<void> testMain()) async {
Future<void> testExecutable(FutureOr<void> testMain()) async {
reportTestException = (FlutterErrorDetails details, String testDescription) {
expect(details.exception, isA<StateError>());
expect((details.exception as StateError).message, 'foo');

View File

@@ -4,7 +4,7 @@
import 'dart:async';
Future<void> main(FutureOr<void> testMain()) async {
Future<void> testExecutable(FutureOr<void> testMain()) async {
await runZoned<dynamic>(testMain, zoneValues: <Type, String>{
String: '/test_config',
});

View File

@@ -4,7 +4,7 @@
import 'dart:async';
Future<void> main(FutureOr<void> testMain()) async {
Future<void> testExecutable(FutureOr<void> testMain()) async {
await runZoned<dynamic>(testMain, zoneValues: <Type, dynamic>{
String: '/test_config/nested_config',
int: 123,