Skip to content

Commit 3b48c57

Browse files
committed
fix path check
1 parent ec9150b commit 3b48c57

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/java/io/nats/NatsRunnerUtilsTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import org.junit.jupiter.api.Test;
1717

18+
import java.io.File;
1819
import java.io.IOException;
1920
import java.nio.file.Path;
2021
import java.nio.file.Paths;
@@ -145,9 +146,12 @@ private static void validateClusterInserts(int count,
145146
if (jsStoreDir == null) {
146147
assertNull(ci.node.jsStoreDir);
147148
}
148-
else {
149+
else if (File.separatorChar == '\\') {
149150
assertEquals(jsStoreDir + "\\" + port, ci.node.jsStoreDir.toString());
150151
}
152+
else {
153+
assertEquals(jsStoreDir + "/" + port, ci.node.jsStoreDir.toString());
154+
}
151155
}
152156
}
153157
}

0 commit comments

Comments
 (0)