ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [24/34] ignite git commit: Grids were not stopped in two tests leading to errors in other tests
Date Thu, 30 Mar 2017 17:25:34 GMT
Grids were not stopped in two tests leading to errors in other tests


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/3fcab0df
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/3fcab0df
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/3fcab0df

Branch: refs/heads/ignite-3477-master
Commit: 3fcab0df64184871d2238e09e127c1816402cb2d
Parents: 9f40516
Author: Sergey Chugunov <sergey.chugunov@gmail.com>
Authored: Thu Mar 30 12:31:04 2017 +0300
Committer: Sergey Chugunov <sergey.chugunov@gmail.com>
Committed: Thu Mar 30 12:31:04 2017 +0300

----------------------------------------------------------------------
 .../processors/cache/IncorrectCacheTypeMetadataTest.java     | 8 ++++++--
 .../internal/processors/cache/IncorrectQueryEntityTest.java  | 8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/3fcab0df/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IncorrectCacheTypeMetadataTest.java
----------------------------------------------------------------------
diff --git a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IncorrectCacheTypeMetadataTest.java
b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IncorrectCacheTypeMetadataTest.java
index 9695ffb..e994fb3 100644
--- a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IncorrectCacheTypeMetadataTest.java
+++ b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IncorrectCacheTypeMetadataTest.java
@@ -64,9 +64,13 @@ public class IncorrectCacheTypeMetadataTest extends GridCommonAbstractTest
{
         catch (Exception exception) {
             if (!exception.getMessage().contains(
                 QueryUtils.propertyInitializationExceptionMessage(
-                    Object.class, Object.class, "exceptionOid", Object.class))) {
+                    Object.class, Object.class, "exceptionOid", Object.class)))
                 fail("property initialization exception must be thrown, but got " + exception.getMessage());
-            }
         }
     }
+
+    /** {@inheritDoc} */
+    @Override protected void afterTest() throws Exception {
+        stopAllGrids();
+    }
 }

http://git-wip-us.apache.org/repos/asf/ignite/blob/3fcab0df/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IncorrectQueryEntityTest.java
----------------------------------------------------------------------
diff --git a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IncorrectQueryEntityTest.java
b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IncorrectQueryEntityTest.java
index 9bdadc6..e71a77e 100644
--- a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IncorrectQueryEntityTest.java
+++ b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IncorrectQueryEntityTest.java
@@ -67,9 +67,13 @@ public class IncorrectQueryEntityTest extends GridCommonAbstractTest {
         catch (Exception exception) {
             if (!exception.getMessage().contains(
                 QueryUtils.propertyInitializationExceptionMessage(
-                    Object.class, Object.class, "exceptionOid", Object.class))) {
+                    Object.class, Object.class, "exceptionOid", Object.class)))
                 fail("property initialization exception must be thrown, but got " + exception.getMessage());
-            }
         }
     }
+
+    /** {@inheritDoc} */
+    @Override protected void afterTest() throws Exception {
+        stopAllGrids();
+    }
 }


Mime
View raw message