Skip to content

Commit

Permalink
Remove extra two lines of output, adapt test.
Browse files Browse the repository at this point in the history
  • Loading branch information
janhoy committed Oct 18, 2024
1 parent 0d0ee43 commit a3002f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions solr/core/src/java/org/apache/solr/cli/StatusTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,7 @@ public void runImpl(CommandLine cli) throws Exception {
}

// No URL or port, scan for running processes
if (!shortFormat) {
CLIO.out("Looking for running processes...");
}
Collection<SolrProcess> procs = processMgr.scanSolrPidFiles();
if (!shortFormat) {
CLIO.out(String.format(Locale.ROOT, "\nFound %s Solr nodes: ", procs.size()));
}
if (!procs.isEmpty()) {
for (SolrProcess process : procs) {
if (shortFormat) {
Expand Down
2 changes: 1 addition & 1 deletion solr/packaging/test/test_status.bats
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ teardown() {
assert_output --partial "No Solr nodes are running."
solr start
run solr status
assert_output --partial "Found 1 Solr nodes:"
assert_output --partial "running on port ${SOLR_PORT}"
solr stop
run solr status
assert_output --partial "No Solr nodes are running."
Expand Down

0 comments on commit a3002f3

Please sign in to comment.