(String testName)
| 455 | } |
| 456 | |
| 457 | private boolean check(String testName) throws InterruptedException { |
| 458 | int tryCount = 2; |
| 459 | for (int i = 0; i < tryCount; ++i) { |
| 460 | var check = checkCurrentCount(testName, false); |
| 461 | logger.info("\n" + |
| 462 | "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" + |
| 463 | "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" + |
| 464 | "Check={} Step={} ExpectCount={} Errors={}\n" + |
| 465 | "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" + |
| 466 | "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++", |
| 467 | check, i, expectCount.get(), getErrorsString()); |
| 468 | if (check) |
| 469 | return true; |
| 470 | if (i < tryCount - 1) |
| 471 | Thread.sleep(10000); |
| 472 | } |
| 473 | return false; |
| 474 | } |
| 475 | |
| 476 | private static class FailAction { |
| 477 | final String name; |
no test coverage detected