Test fix
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/7571f211 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/7571f211 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/7571f211 Branch: refs/heads/ignite-1537 Commit: 7571f211ea85854854f08b9d2cecaff9850e126d Parents: 1282f8b Author: Anton Vinogradov <a...@apache.org> Authored: Wed Sep 30 15:43:40 2015 +0300 Committer: Anton Vinogradov <a...@apache.org> Committed: Wed Sep 30 15:43:40 2015 +0300 ---------------------------------------------------------------------- .../cache/distributed/dht/IgniteCrossCacheTxSelfTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/7571f211/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/dht/IgniteCrossCacheTxSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/dht/IgniteCrossCacheTxSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/dht/IgniteCrossCacheTxSelfTest.java index bf9b1c6..dc0293e 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/dht/IgniteCrossCacheTxSelfTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/dht/IgniteCrossCacheTxSelfTest.java @@ -148,11 +148,11 @@ public class IgniteCrossCacheTxSelfTest extends GridCommonAbstractTest { for (int i = 0; i < TX_CNT; i++) { int grid = ThreadLocalRandom8.current().nextInt(nodeCount()); + IgniteCache<Integer, String> first = grid(grid).cache(FIRST_CACHE); + IgniteCache<Integer, String> second = grid(grid).cache(SECOND_CACHE); + try (Transaction tx = grid(grid).transactions().txStart(concurrency, isolation)) { try { - IgniteCache<Integer, String> first = grid(grid).cache(FIRST_CACHE); - IgniteCache<Integer, String> second = grid(grid).cache(SECOND_CACHE); - int size = ThreadLocalRandom8.current().nextInt(24) + 1; for (int k = 0; k < size; k++) {