Skip to content

Commit c6c451e

Browse files
authored
Just use string interpolation for ws url for tests (#138235)
Follows up on flutter/flutter#137969 - we don't need decodeComponent here
1 parent c245bd8 commit c6c451e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/flutter_tools/lib/src/test/flutter_platform.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ void catchIsolateErrors() {
211211
}
212212
213213
void main() {
214-
String serverPort = Platform.environment['SERVER_PORT'] ?? '';
215-
String server = Uri.decodeComponent('$websocketUrl:\$serverPort');
214+
final String serverPort = Platform.environment['SERVER_PORT'] ?? '';
215+
final String server = '$websocketUrl:\$serverPort';
216216
StreamChannel<dynamic> testChannel = serializeSuite(() {
217217
catchIsolateErrors();
218218
''');

0 commit comments

Comments
 (0)