File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Tests/LanguageServerProtocolJSONRPCTests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,10 @@ class ConnectionTests: XCTestCase {
6464 let notification1 = try JSONEncoder ( ) . encode ( JSONRPCMessage . notification ( EchoNotification ( string: " hello! " ) ) )
6565 let notification2 = try JSONEncoder ( ) . encode ( JSONRPCMessage . notification ( EchoNotification ( string: " no way! " ) ) )
6666
67- let notification1Str : String = " Content-Length: \( notification1. count) \r \n \r \n \( String ( data: notification1, encoding: . utf8) !) "
68- let notfication2Str : String = " Content-Length: \( notification2. count) \r \n \r \n \( String ( data: notification2, encoding: . utf8) !) "
67+ let notification1Str =
68+ " Content-Length: \( notification1. count) \r \n \r \n \( String ( data: notification1, encoding: . utf8) !) "
69+ let notfication2Str =
70+ " Content-Length: \( notification2. count) \r \n \r \n \( String ( data: notification2, encoding: . utf8) !) "
6971
7072 for b in notification1Str. utf8. dropLast ( ) {
7173 clientConnection. send ( _rawData: [ b ] . withUnsafeBytes { DispatchData ( bytes: $0) } )
You can’t perform that action at this time.
0 commit comments