[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

@@ -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('''

View File

@@ -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())