Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-368 9267b90bb -> 0c06c6230


# 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/ignite-368
Commit: 0c06c62305c8ce700698608a99a558b4d2bfabb8
Parents: 9267b90
Author: AKuznetsov <akuznet...@gridgain.com>
Authored: Tue Mar 17 13:20:52 2015 +0700
Committer: AKuznetsov <akuznet...@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)

Reply via email to