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

This seems like an old remnant that is now completely unnecessary.
This commit is contained in:
Dan Field
2023-11-10 09:21:17 -08:00
committed by GitHub
parent 983b2f6bc8
commit 9295035e83

View File

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