[flutter_test] handle breaking change to test main (#67425)
* [flutter_test] handle breaking change to test main . Fixes #67382
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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',
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user