Skip to content

Commit

Permalink
SOLR-16954: Fix test failures caused by update circuit breaker (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhoy authored Sep 14, 2023
1 parent 086dcbe commit 729b497
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public abstract class BaseTestCircuitBreaker extends SolrTestCaseJ4 {
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

protected static void indexDocs() {
removeAllExistingCircuitBreakers();
for (int i = 0; i < 20; i++) {
assertU(adoc("name", "john smith", "id", "1"));
assertU(adoc("name", "johathon smith", "id", "2"));
Expand Down Expand Up @@ -269,7 +270,7 @@ public void testErrorCode() {
CircuitBreaker.getErrorCode(List.of(new MemoryCircuitBreaker())));
}

private void removeAllExistingCircuitBreakers() {
private static void removeAllExistingCircuitBreakers() {
h.getCore().getCircuitBreakerRegistry().deregisterAll();
}

Expand Down

0 comments on commit 729b497

Please sign in to comment.