[flutter_test] handle breaking change to test main (#67425)
* [flutter_test] handle breaking change to test main . Fixes #67382
This commit is contained in:
@@ -197,7 +197,7 @@ void main() {
|
||||
''');
|
||||
if (testConfigFile != null) {
|
||||
buffer.write('''
|
||||
return () => test_config.main(test.main);
|
||||
return () => test_config.testExecutable(test.main);
|
||||
''');
|
||||
} else {
|
||||
buffer.write('''
|
||||
|
||||
@@ -956,7 +956,7 @@ void main() async {
|
||||
LocalFileComparator comparator = LocalFileComparator(Uri.parse('$testUri'));
|
||||
goldenFileComparator = comparator;
|
||||
|
||||
${testConfigFile != null ? 'test_config.main(() async {' : ''}
|
||||
${testConfigFile != null ? 'test_config.testExecutable(() async {' : ''}
|
||||
final commands = stdin
|
||||
.transform<String>(utf8.decoder)
|
||||
.transform<String>(const LineSplitter())
|
||||
|
||||
Reference in New Issue
Block a user