Add type to StreamChannel in generated test code. (#35367)

This is necessary for those who wish to comply with static analysis like
`strict-raw-types: true`, which includes generated code within their package.
This commit is contained in:
Sam Rawlins
2019-07-03 14:11:11 -07:00
committed by Michael Goderbauer
parent f85630b18a
commit 5b6ebf1230

View File

@@ -210,7 +210,7 @@ void main() {
print('$_kStartTimeoutTimerMessage');
String serverPort = Platform.environment['SERVER_PORT'];
String server = Uri.decodeComponent('$encodedWebsocketUrl:\$serverPort');
StreamChannel channel = serializeSuite(() {
StreamChannel<dynamic> channel = serializeSuite(() {
catchIsolateErrors();
goldenFileComparator = new LocalFileComparator(Uri.parse('$testUrl'));
autoUpdateGoldenFiles = $updateGoldens;