Skip to content

Commit cf15f48

Browse files
authored
IGNITE-13066: Print which tests are started in quite mode too (apache#7840)
1 parent c915cea commit cf15f48

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ private void resolveWorkDirectory() throws Exception {
671671
private void beforeFirstTest() throws Exception {
672672
sharedStaticIpFinder = new TcpDiscoveryVmIpFinder(true);
673673

674-
info(">>> Starting test class: " + testClassDescription() + " <<<");
674+
U.quietAndInfo(log(), ">>> Starting test class: " + testClassDescription() + " <<<");
675675

676676
if (isSafeTopology())
677677
assert G.allGrids().isEmpty() : "Not all Ignite instances stopped before tests execution:" + G.allGrids();
@@ -716,7 +716,7 @@ private void beforeFirstTest() throws Exception {
716716
private void cleanUpTestEnviroment() throws Exception {
717717
long dur = System.currentTimeMillis() - ts;
718718

719-
info(">>> Stopping test: " + testDescription() + " in " + dur + " ms <<<");
719+
U.quietAndInfo(log(),">>> Stopping test: " + testDescription() + " in " + dur + " ms <<<");
720720

721721
try {
722722
afterTest();
@@ -904,7 +904,6 @@ private final Ignite startMultiThreaded(int init, int cnt, Consumer<Integer> sta
904904
* @param cnt Grid count
905905
* @throws Exception If an error occurs.
906906
*/
907-
@SuppressWarnings({"BusyWait"})
908907
protected void checkTopology(int cnt) throws Exception {
909908
for (int j = 0; j < 10; j++) {
910909
boolean topOk = true;
@@ -1943,7 +1942,7 @@ protected static ClassLoader getExternalClassLoader() {
19431942

19441943
/** */
19451944
private void afterLastTest() throws Exception {
1946-
info(">>> Stopping test class: " + testClassDescription() + " <<<");
1945+
U.quietAndInfo(log(), ">>> Stopping test class: " + testClassDescription() + " <<<");
19471946

19481947
Exception err = null;
19491948

@@ -2305,7 +2304,7 @@ private void prepareTestEnviroment() throws Exception {
23052304
// Clear log throttle.
23062305
LT.clear();
23072306

2308-
info(">>> Starting test: " + testDescription() + " <<<");
2307+
U.quietAndInfo(log(), ">>> Starting test: " + testDescription() + " <<<");
23092308

23102309
try {
23112310
beforeTest();

0 commit comments

Comments
 (0)