Skip to content

Commit 11c33ae

Browse files
authored
Fix misleading error message in tests BreakerTestUtil (elastic#136069) (elastic#136081)
1 parent 5572301 commit 11c33ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/elasticsearch/test/BreakerTestUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static <E extends Exception> ByteSizeValue findBreakerLimit(ByteSizeValue
5353
try {
5454
c.accept(onePastLimit);
5555
} catch (CircuitBreakingException e) {
56-
throw new IllegalArgumentException("expected runnable to break under a limit of " + onePastLimit + " bytes");
56+
throw new IllegalArgumentException("expected runnable to *not* break under a limit of " + onePastLimit + " bytes");
5757
}
5858
return limit;
5959
}

0 commit comments

Comments
 (0)