MCPcopy Create free account
hub / github.com/e2wugui/zeze / check

Method check

ZezeJava/ZezeJava/src/main/java/Zeze/Raft/Test.java:457–474  ·  view source on GitHub ↗
(String testName)

Source from the content-addressed store, hash-verified

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;

Callers 1

runTraceMethod · 0.95

Calls 4

checkCurrentCountMethod · 0.95
getErrorsStringMethod · 0.95
getMethod · 0.65
sleepMethod · 0.45

Tested by

no test coverage detected