ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [37/50] [abbrv] incubator-ignite git commit: ignite-59: review
Date Wed, 21 Jan 2015 07:16:31 GMT
ignite-59: review


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

Branch: refs/heads/ignite-35
Commit: fd03d80ce9f09e639050bf40a00f212c2892c8b1
Parents: 521ac9e
Author: Yakov Zhdanov <yzhdanov@gridgain.com>
Authored: Mon Jan 19 17:01:52 2015 +0300
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Mon Jan 19 17:01:52 2015 +0300

----------------------------------------------------------------------
 .../processors/cache/GridCacheBasicApiAbstractTest.java     | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/fd03d80c/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheBasicApiAbstractTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheBasicApiAbstractTest.java
b/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheBasicApiAbstractTest.java
index 0910d42..3352356 100644
--- a/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheBasicApiAbstractTest.java
+++ b/modules/core/src/test/java/org/gridgain/grid/kernal/processors/cache/GridCacheBasicApiAbstractTest.java
@@ -168,14 +168,14 @@ public abstract class GridCacheBasicApiAbstractTest extends GridCommonAbstractTe
     public void testInterruptLock() throws InterruptedException {
         final IgniteCache<Integer, String> cache = ignite.jcache(null);
 
-//        cache.put(1, "a");
-
         cache.lock(1).lock();
 
         final AtomicBoolean isOk = new AtomicBoolean(false);
 
         Thread t = new Thread(new Runnable() {
             @Override public void run() {
+                assertFalse(cache.lock(1).isLockedByThread());
+
                 cache.lock(1).lock();
 
                 try {
@@ -205,12 +205,9 @@ public abstract class GridCacheBasicApiAbstractTest extends GridCommonAbstractTe
     /**
      *
      */
-    public void _testInterruptLockWithTimeout() throws InterruptedException {
+    public void testInterruptLockWithTimeout() throws InterruptedException {
         final IgniteCache<Integer, String> cache = ignite.jcache(null);
 
-//        cache.put(1, "a");
-//        cache.put(2, "b");
-
         cache.lock(2).lock();
 
         final AtomicBoolean isOk = new AtomicBoolean(false);


Mime
View raw message