File tree 1 file changed +1
-3
lines changed
src/test/java/org/elasticsearch/common/breaker 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public void run() {
54
54
if (tripped .get ()) {
55
55
assertThat ("tripped too many times" , true , equalTo (false ));
56
56
} else {
57
- assert tripped .compareAndSet (false , true );
57
+ assertThat ( tripped .compareAndSet (false , true ), equalTo ( true ) );
58
58
}
59
59
} catch (Throwable e2 ) {
60
60
lastException .set (e2 );
@@ -86,7 +86,6 @@ public void testConstantFactor() throws Exception {
86
86
breaker .addEstimateBytesAndMaybeBreak (3 );
87
87
fail ("should never reach this" );
88
88
} catch (CircuitBreakingException cbe ) {
89
- assert true ;
90
89
}
91
90
92
91
// shouldn't throw an exception
@@ -102,7 +101,6 @@ public void testConstantFactor() throws Exception {
102
101
breaker .addEstimateBytesAndMaybeBreak (0 );
103
102
fail ("should never reach this" );
104
103
} catch (CircuitBreakingException cbe ) {
105
- assert true ;
106
104
}
107
105
}
108
106
}
You can’t perform that action at this time.
0 commit comments