Skip to content

Commit b0a9fb3

Browse files
srinathgitMarkLogic Builder
authored andcommitted
DHFPROD-7630:Fix EndToEndFlowTests in Windows
1 parent 62563d0 commit b0a9fb3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

marklogic-data-hub/src/test/java/com/marklogic/hub_integration/EndToEndFlowTests.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import org.junit.jupiter.api.BeforeEach;
4141
import org.junit.jupiter.api.DynamicTest;
4242
import org.junit.jupiter.api.TestFactory;
43+
import org.junit.jupiter.api.condition.OS;
4344
import org.junit.jupiter.api.parallel.Execution;
4445
import org.junit.jupiter.api.parallel.ExecutionMode;
4546
import org.skyscreamer.jsonassert.JSONAssert;
@@ -803,7 +804,12 @@ private void testInputFlowViaMlcp(String prefix, String fileSuffix, DatabaseClie
803804
String optionString;
804805
JsonNode mlcpOptions;
805806
try {
806-
optionString = toJsonString(options).replace("\"", "\\\"");
807+
if (OS.WINDOWS.isCurrentOs()) {
808+
optionString = toJsonString(options).replace("\"", "\\\\\\\"");
809+
}
810+
else {
811+
optionString = toJsonString(options).replace("\"", "\\\"");
812+
}
807813
String optionsJson =
808814
"{" +
809815
"\"input_file_path\":\"" + inputPath.replace("\\", "\\\\\\\\") + "\"," +

0 commit comments

Comments
 (0)