Skip to content

Commit e8bb83f

Browse files
authored
[solr] Replace "create_core" with "create" command (#10172)
1 parent c5bcaab commit e8bb83f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/solr/src/main/java/org/testcontainers/containers/SolrContainer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected void waitUntilContainerStarted() {
143143
@SneakyThrows
144144
protected void containerIsStarted(InspectContainerResponse containerInfo) {
145145
if (!configuration.isZookeeper()) {
146-
ExecResult result = execInContainer("solr", "create_core", "-c", configuration.getCollectionName());
146+
ExecResult result = execInContainer("solr", "create", "-c", configuration.getCollectionName());
147147
if (result.getExitCode() != 0) {
148148
throw new IllegalStateException(
149149
"Unable to create solr core:\nStdout: " + result.getStdout() + "\nStderr:" + result.getStderr()

0 commit comments

Comments
 (0)