ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yzhda...@apache.org
Subject [12/16] ignite git commit: Ignite-642: fixes failover flag test.
Date Tue, 12 Apr 2016 17:48:56 GMT
Ignite-642: fixes failover flag test.


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

Branch: refs/heads/ignite-642
Commit: 7a2197636125736cd83ac71a1c49d8b4e9af2bf2
Parents: b579192
Author: Vladisav Jelisavcic <vladisavj@gmail.com>
Authored: Thu Mar 24 11:24:31 2016 +0100
Committer: vladisav <vladisavj@gmail.com>
Committed: Thu Mar 24 11:24:31 2016 +0100

----------------------------------------------------------------------
 .../cache/datastructures/IgniteLockAbstractSelfTest.java  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7a219763/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/datastructures/IgniteLockAbstractSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/datastructures/IgniteLockAbstractSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/datastructures/IgniteLockAbstractSelfTest.java
index f276ff1..a745b85 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/datastructures/IgniteLockAbstractSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/datastructures/IgniteLockAbstractSelfTest.java
@@ -131,12 +131,12 @@ public abstract class IgniteLockAbstractSelfTest extends IgniteAtomicsAbstractTe
 
                         info("Acquired in separate thread.");
 
-                        // Lock is acquired silently in failoverSafe mode.
-                        if (failoverSafe) {
-                            lock0.unlock();
+                        // Lock is acquired silently only in failoverSafe mode.
+                        assertTrue(failoverSafe);
 
-                            info("Released lock in separate thread.");
-                        }
+                        lock0.unlock();
+
+                        info("Released lock in separate thread.");
                     }
                     catch (IgniteInterruptedException e) {
                         if (!failoverSafe)


Mime
View raw message