File tree 1 file changed +4
-2
lines changed
Tests/LanguageServerProtocolJSONRPCTests
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,10 @@ class ConnectionTests: XCTestCase {
64
64
let notification1 = try JSONEncoder ( ) . encode ( JSONRPCMessage . notification ( EchoNotification ( string: " hello! " ) ) )
65
65
let notification2 = try JSONEncoder ( ) . encode ( JSONRPCMessage . notification ( EchoNotification ( string: " no way! " ) ) )
66
66
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) !) "
69
71
70
72
for b in notification1Str. utf8. dropLast ( ) {
71
73
clientConnection. send ( _rawData: [ b ] . withUnsafeBytes { DispatchData ( bytes: $0) } )
You can’t perform that action at this time.
0 commit comments