ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject incubator-ignite git commit: IGNITE-59 Remove debug code.
Date Wed, 28 Jan 2015 10:08:13 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-59 210845df4 -> a6d87acfd


IGNITE-59 Remove debug code.


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

Branch: refs/heads/ignite-59
Commit: a6d87acfdda20c4f96eed1a448abb3e667e3c614
Parents: 210845d
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Wed Jan 28 13:03:11 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Wed Jan 28 13:03:11 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a6d87acf/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheBasicApiAbstractTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheBasicApiAbstractTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheBasicApiAbstractTest.java
index e1d1441..4c945d9 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheBasicApiAbstractTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheBasicApiAbstractTest.java
@@ -224,9 +224,13 @@ public abstract class GridCacheBasicApiAbstractTest extends GridCommonAbstractTe
 
             final AtomicBoolean isOk = new AtomicBoolean(false);
 
+            final CountDownLatch latch = new CountDownLatch(1);
+
             Thread t = new Thread(new Runnable() {
                 @Override public void run() {
                     try {
+                        latch.countDown();
+
                         cache.lockAll(Arrays.asList(keys.get(0), keys.get(1))).tryLock(50000,
MILLISECONDS);
                     }
                     catch (InterruptedException ignored) {
@@ -237,8 +241,9 @@ public abstract class GridCacheBasicApiAbstractTest extends GridCommonAbstractTe
 
             t.start();
 
-            JOptionPane.showConfirmDialog(null, "wait");
-            Thread.sleep(100);
+            latch.await();
+
+            Thread.sleep(300);
 
             t.interrupt();
 


Mime
View raw message