You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/05/08 15:14:09 UTC
[3/3] incubator-ignite git commit: #ignite-373: add test to test
suite.
#ignite-373: add test to test suite.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/22e78afa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/22e78afa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/22e78afa
Branch: refs/heads/ignite-373
Commit: 22e78afa2a2f0f30921bb04e88bd0b9b0d787891
Parents: 49421af
Author: ivasilinets <iv...@gridgain.com>
Authored: Fri May 8 16:13:48 2015 +0300
Committer: ivasilinets <iv...@gridgain.com>
Committed: Fri May 8 16:13:48 2015 +0300
----------------------------------------------------------------------
.../ignite/internal/processors/cache/CacheRemoveAllSelfTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/22e78afa/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheRemoveAllSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheRemoveAllSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheRemoveAllSelfTest.java
index 787005e..38fa1da 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheRemoveAllSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheRemoveAllSelfTest.java
@@ -74,12 +74,12 @@ public class CacheRemoveAllSelfTest extends GridCacheAbstractSelfTest {
* @throws Exception If failed.
*/
public void testRemoveAll() throws Exception {
- final AtomicInteger igniteId = new AtomicInteger(0);
+ final AtomicInteger igniteId = new AtomicInteger(1);
IgniteInternalFuture fut = GridTestUtils.runMultiThreadedAsync(new Callable<Object>() {
@Override public Object call() throws Exception {
for (int i = 0; i < 5; ++i)
- startGrid(igniteId.incrementAndGet());
+ startGrid(igniteId.getAndIncrement());
return true;
}