You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by mm...@apache.org on 2020/06/23 16:35:00 UTC
[ignite] branch master updated: IGNITE-13066: Print which tests are
started in quite mode too (#7840)
This is an automated email from the ASF dual-hosted git repository.
mmuzaf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new cf15f48 IGNITE-13066: Print which tests are started in quite mode too (#7840)
cf15f48 is described below
commit cf15f48b883f943a9296ace3766088a752469b01
Author: Maxim Muzafarov <mm...@apache.org>
AuthorDate: Tue Jun 23 19:34:33 2020 +0300
IGNITE-13066: Print which tests are started in quite mode too (#7840)
---
.../org/apache/ignite/testframework/junits/GridAbstractTest.java | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java b/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
index 3911018..fcde6fc 100755
--- a/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java
@@ -671,7 +671,7 @@ public abstract class GridAbstractTest extends JUnitAssertAware {
private void beforeFirstTest() throws Exception {
sharedStaticIpFinder = new TcpDiscoveryVmIpFinder(true);
- info(">>> Starting test class: " + testClassDescription() + " <<<");
+ U.quietAndInfo(log(), ">>> Starting test class: " + testClassDescription() + " <<<");
if (isSafeTopology())
assert G.allGrids().isEmpty() : "Not all Ignite instances stopped before tests execution:" + G.allGrids();
@@ -716,7 +716,7 @@ public abstract class GridAbstractTest extends JUnitAssertAware {
private void cleanUpTestEnviroment() throws Exception {
long dur = System.currentTimeMillis() - ts;
- info(">>> Stopping test: " + testDescription() + " in " + dur + " ms <<<");
+ U.quietAndInfo(log(),">>> Stopping test: " + testDescription() + " in " + dur + " ms <<<");
try {
afterTest();
@@ -904,7 +904,6 @@ public abstract class GridAbstractTest extends JUnitAssertAware {
* @param cnt Grid count
* @throws Exception If an error occurs.
*/
- @SuppressWarnings({"BusyWait"})
protected void checkTopology(int cnt) throws Exception {
for (int j = 0; j < 10; j++) {
boolean topOk = true;
@@ -1943,7 +1942,7 @@ public abstract class GridAbstractTest extends JUnitAssertAware {
/** */
private void afterLastTest() throws Exception {
- info(">>> Stopping test class: " + testClassDescription() + " <<<");
+ U.quietAndInfo(log(), ">>> Stopping test class: " + testClassDescription() + " <<<");
Exception err = null;
@@ -2305,7 +2304,7 @@ public abstract class GridAbstractTest extends JUnitAssertAware {
// Clear log throttle.
LT.clear();
- info(">>> Starting test: " + testDescription() + " <<<");
+ U.quietAndInfo(log(), ">>> Starting test: " + testDescription() + " <<<");
try {
beforeTest();