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
(cherry picked from commit 729b497)
  • Loading branch information
janhoy committed Sep 14, 2023
1 parent 2271b37 commit 1f739f0
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 1f739f0

Please sign in to comment.