ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [38/46] incubator-ignite git commit: # IGNITE-368 Fixed test logic.
Date Wed, 18 Mar 2015 04:24:19 GMT
# IGNITE-368 Fixed test logic.


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

Branch: refs/heads/ignite-496
Commit: cb3eecf83d31ae1dee05803b2ebab6888d6d828b
Parents: 0c06c62
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Tue Mar 17 13:54:38 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Tue Mar 17 13:54:38 2015 +0700

----------------------------------------------------------------------
 .../internal/util/IgniteExceptionRegistrySelfTest.java    | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/cb3eecf8/modules/core/src/test/java/org/apache/ignite/internal/util/IgniteExceptionRegistrySelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/util/IgniteExceptionRegistrySelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/util/IgniteExceptionRegistrySelfTest.java
index 78dc54c..4d1e4f8 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/util/IgniteExceptionRegistrySelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/util/IgniteExceptionRegistrySelfTest.java
@@ -40,12 +40,20 @@ public class IgniteExceptionRegistrySelfTest extends GridCommonAbstractTest
{
 
         int expCnt = 150;
 
+        long errorCount = registry.errorCount();
+
+        info(">>> Registry error count before test: " + errorCount);
+
+        Collection<IgniteExceptionRegistry.ExceptionInfo> errors = registry.getErrors(errorCount);
+
         for (int i = 0; i < expCnt; i++)
             registry.onException("Test " + i, new Exception("Test " + i));
 
-        Collection<IgniteExceptionRegistry.ExceptionInfo> errors = registry.getErrors(registry.errorCount());
+        info(">>> Registry error count after test: " + registry.errorCount());
 
         if (expCnt != errors.size()) {
+            info(">>> Expected error count: " + expCnt + ", but actual: " + errors.size());
+
             for (IgniteExceptionRegistry.ExceptionInfo e : errors)
                 if (!e.message().startsWith("Test ")) {
                     info("----------------------------");


Mime
View raw message