ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [34/37] incubator-ignite git commit: # IGNITE-368 Changed test to wait for stable topology and collect errors added by test.
Date Tue, 17 Mar 2015 09:52:43 GMT
# IGNITE-368 Changed test to wait for stable topology and collect errors added by test.


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

Branch: refs/heads/sprint-2
Commit: 0c06c62305c8ce700698608a99a558b4d2bfabb8
Parents: 9267b90
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Tue Mar 17 13:20:52 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Tue Mar 17 13:20:52 2015 +0700

----------------------------------------------------------------------
 .../ignite/internal/util/IgniteExceptionRegistrySelfTest.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0c06c623/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 5c21dc8..78dc54c 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
@@ -36,12 +36,14 @@ public class IgniteExceptionRegistrySelfTest extends GridCommonAbstractTest
{
      * @throws Exception if failed.
      */
     public void testOnException() throws Exception {
+        awaitPartitionMapExchange();
+
         int expCnt = 150;
 
         for (int i = 0; i < expCnt; i++)
             registry.onException("Test " + i, new Exception("Test " + i));
 
-        Collection<IgniteExceptionRegistry.ExceptionInfo> errors = registry.getErrors(0);
+        Collection<IgniteExceptionRegistry.ExceptionInfo> errors = registry.getErrors(registry.errorCount());
 
         if (expCnt != errors.size()) {
             for (IgniteExceptionRegistry.ExceptionInfo e : errors)


Mime
View raw message