Polish boolean checking in test cases and dashboard (#1664)
This commit is contained in:
parent
b9b1e8a481
commit
c5da3faad9
|
|
@ -61,7 +61,7 @@ public class RateLimiterControllerTest {
|
|||
public void run() {
|
||||
boolean pass = paceController.canPass(node, 1);
|
||||
|
||||
if (pass == true) {
|
||||
if (pass) {
|
||||
passcount.incrementAndGet();
|
||||
} else {
|
||||
blockcount.incrementAndGet();
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ public class DemoController {
|
|||
try {
|
||||
e1 = SphU.entry(name);
|
||||
|
||||
if (slow == true) {
|
||||
if (slow) {
|
||||
TimeUnit.MILLISECONDS.sleep(3000);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue