Unverified Commit 9295035e authored by Dan Field's avatar Dan Field Committed by GitHub

Drop unnecessary URI encoding of websocket url in listener (#137969)

This seems like an old remnant that is now completely unnecessary.
parent 983b2f6b
......@@ -139,7 +139,6 @@ String generateTestBootstrap({
final String websocketUrl = host.type == InternetAddressType.IPv4
? 'ws://${host.address}'
: 'ws://[${host.address}]';
final String encodedWebsocketUrl = Uri.encodeComponent(websocketUrl);
final StringBuffer buffer = StringBuffer();
buffer.write('''
......@@ -213,7 +212,7 @@ void catchIsolateErrors() {
void main() {
String serverPort = Platform.environment['SERVER_PORT'] ?? '';
String server = Uri.decodeComponent('$encodedWebsocketUrl:\$serverPort');
String server = Uri.decodeComponent('$websocketUrl:\$serverPort');
StreamChannel<dynamic> testChannel = serializeSuite(() {
catchIsolateErrors();
''');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment