Skip to content

Commit df34bc6

Browse files
srinathgitMarkLogic Builder
authored andcommitted
DHFPROD-7630:Fix 4.x mlcp flow in Windows
1 parent b1d9ca0 commit df34bc6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import com.marklogic.hub.scaffold.Scaffolding;
3636
import com.marklogic.hub.util.FileUtil;
3737
import com.marklogic.hub.mlcp.MlcpRunner;
38+
import com.marklogic.mgmt.resource.hosts.HostManager;
3839
import org.apache.commons.io.FileUtils;
3940
import org.apache.commons.io.IOUtils;
4041
import org.junit.jupiter.api.BeforeEach;
@@ -803,8 +804,10 @@ private void testInputFlowViaMlcp(String prefix, String fileSuffix, DatabaseClie
803804
String basePath = getResourceFile("e2e-test/input").getAbsolutePath();
804805
String optionString;
805806
JsonNode mlcpOptions;
807+
//mlcp seem to behave differently on Windows single node/ cluster env
808+
int hostCount = new HostManager(getHubClient().getManageClient()).getHostIds().size();
806809
try {
807-
if (OS.WINDOWS.isCurrentOs()) {
810+
if (OS.WINDOWS.isCurrentOs() && hostCount > 1) {
808811
optionString = toJsonString(options).replace("\"", "\\\\\\\"");
809812
}
810813
else {

0 commit comments

Comments
 (0)