Skip to content

Commit bd47976

Browse files
committed
Fix test assertion on Windows
1 parent 66ecdab commit bd47976

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

org.eclipse.lsp4j.jsonrpc/src/test/java/org/eclipse/lsp4j/jsonrpc/test/TracingMessageConsumerTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
******************************************************************************/
1212
package org.eclipse.lsp4j.jsonrpc.test;
1313

14+
import java.io.File;
1415
import java.nio.file.Path;
1516
import java.nio.file.Paths;
1617
import org.eclipse.lsp4j.jsonrpc.*;
@@ -157,7 +158,7 @@ public void testReceivedErrorResponseWithCustomDataAdapter() {
157158
"Error: {\n" +
158159
" \"code\": -32600,\n" +
159160
" \"message\": \"bar\",\n" +
160-
" \"data\": \"foo/Bar.java\"\n" +
161+
" \"data\": \"foo" + File.separator + "Bar.java\"\n" +
161162
"}\n" +
162163
"\n" +
163164
"\n";
@@ -287,7 +288,7 @@ public void testSendingNotificationWithCustomAdapter() {
287288
String actualTrace = stringWriter.toString();
288289
String expectedTrace = "" +
289290
"[Trace - 06:07:30 PM] Sending notification 'foo'\n" +
290-
"Params: \"foo/Bar.java\"\n" +
291+
"Params: \"foo" + File.separator + "Bar.java\"\n" +
291292
"\n" +
292293
"\n";
293294

0 commit comments

Comments
 (0)