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() {
|
public void run() {
|
||||||
boolean pass = paceController.canPass(node, 1);
|
boolean pass = paceController.canPass(node, 1);
|
||||||
|
|
||||||
if (pass == true) {
|
if (pass) {
|
||||||
passcount.incrementAndGet();
|
passcount.incrementAndGet();
|
||||||
} else {
|
} else {
|
||||||
blockcount.incrementAndGet();
|
blockcount.incrementAndGet();
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ public class DemoController {
|
||||||
try {
|
try {
|
||||||
e1 = SphU.entry(name);
|
e1 = SphU.entry(name);
|
||||||
|
|
||||||
if (slow == true) {
|
if (slow) {
|
||||||
TimeUnit.MILLISECONDS.sleep(3000);
|
TimeUnit.MILLISECONDS.sleep(3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue