Just use string interpolation for ws url for tests (#138235)

Follows up on https://github.com/flutter/flutter/pull/137969 - we don't
need decodeComponent here
This commit is contained in:
Dan Field
2023-11-16 10:27:25 -08:00
committed by GitHub
parent c245bd8932
commit c6c451ee46

View File

@@ -211,8 +211,8 @@ void catchIsolateErrors() {
}
void main() {
String serverPort = Platform.environment['SERVER_PORT'] ?? '';
String server = Uri.decodeComponent('$websocketUrl:\$serverPort');
final String serverPort = Platform.environment['SERVER_PORT'] ?? '';
final String server = '$websocketUrl:\$serverPort';
StreamChannel<dynamic> testChannel = serializeSuite(() {
catchIsolateErrors();
''');