ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [08/20] incubator-ignite git commit: # ignite-sprint-7 enabled test
Date Fri, 26 Jun 2015 16:43:22 GMT
# ignite-sprint-7 enabled 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/01d842a5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/01d842a5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/01d842a5

Branch: refs/heads/ignite-428
Commit: 01d842a5110587cf6df4a17217a0674e9bed391f
Parents: 3e8ddb4
Author: sboikov <sboikov@gridgain.com>
Authored: Fri Jun 26 12:29:17 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Fri Jun 26 12:29:17 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/GridDiscoveryEventSelfTest.java     | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/01d842a5/modules/core/src/test/java/org/apache/ignite/internal/GridDiscoveryEventSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/GridDiscoveryEventSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/GridDiscoveryEventSelfTest.java
index 3981b7f..d820dba 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/GridDiscoveryEventSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/GridDiscoveryEventSelfTest.java
@@ -98,7 +98,7 @@ public class GridDiscoveryEventSelfTest extends GridCommonAbstractTest {
                 private AtomicInteger cnt = new AtomicInteger();
 
                 @Override public boolean apply(Event evt) {
-                    assert evt.type() == EVT_NODE_JOINED;
+                    assert evt.type() == EVT_NODE_JOINED : evt;
 
                     evts.put(cnt.getAndIncrement(), ((DiscoveryEvent)evt).topologyNodes());
 
@@ -147,8 +147,6 @@ public class GridDiscoveryEventSelfTest extends GridCommonAbstractTest
{
      * @throws Exception If failed.
      */
     public void testLeaveSequenceEvents() throws Exception {
-        fail("https://issues.apache.org/jira/browse/IGNITE-932");
-
         try {
             Ignite g0 = startGrid(0);
 
@@ -165,6 +163,8 @@ public class GridDiscoveryEventSelfTest extends GridCommonAbstractTest
{
                 private AtomicInteger cnt = new AtomicInteger();
 
                 @Override public boolean apply(Event evt) {
+                    assert evt.type() == EVT_NODE_LEFT || evt.type() == EVT_NODE_FAILED :
evt;
+
                     evts.put(cnt.getAndIncrement(), ((DiscoveryEvent) evt).topologyNodes());
 
                     latch.countDown();
@@ -215,8 +215,6 @@ public class GridDiscoveryEventSelfTest extends GridCommonAbstractTest
{
      * @throws Exception If failed.
      */
     public void testMixedSequenceEvents() throws Exception {
-        fail("https://issues.apache.org/jira/browse/IGNITE-932");
-
         try {
             Ignite g0 = startGrid(0);
 
@@ -231,7 +229,7 @@ public class GridDiscoveryEventSelfTest extends GridCommonAbstractTest
{
 
                 @Override public boolean apply(Event evt) {
                     assert evt.type() == EVT_NODE_JOINED
-                        || evt.type() == EVT_NODE_LEFT || evt.type() == EVT_NODE_FAILED;
+                        || evt.type() == EVT_NODE_LEFT || evt.type() == EVT_NODE_FAILED :
evt;
 
                     evts.put(cnt.getAndIncrement(), ((DiscoveryEvent) evt).topologyNodes());
 
@@ -347,7 +345,7 @@ public class GridDiscoveryEventSelfTest extends GridCommonAbstractTest
{
                 private AtomicInteger cnt = new AtomicInteger();
 
                 @Override public boolean apply(Event evt) {
-                    assert evt.type() == EVT_NODE_JOINED;
+                    assert evt.type() == EVT_NODE_JOINED : evt;
 
                     X.println(">>>>>>> Joined " + F.viewReadOnly(((DiscoveryEvent)
evt).topologyNodes(),
                         NODE_2ID));


Mime
View raw message