You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by tk...@apache.org on 2022/12/06 07:15:21 UTC
[ignite] branch master updated: IGNITE-18334 Make IgniteDbPutGetAbstractTest#testRandomRemove() actually use random order (#10422)
This is an automated email from the ASF dual-hosted git repository.
tkalkirill pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 000f4ba1ccc IGNITE-18334 Make IgniteDbPutGetAbstractTest#testRandomRemove() actually use random order (#10422)
000f4ba1ccc is described below
commit 000f4ba1cccf9821b2a788ac32ec713b53659077
Author: Roman Puchkovskiy <ro...@gmail.com>
AuthorDate: Tue Dec 6 11:15:11 2022 +0400
IGNITE-18334 Make IgniteDbPutGetAbstractTest#testRandomRemove() actually use random order (#10422)
---
.../internal/processors/database/IgniteDbPutGetAbstractTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/database/IgniteDbPutGetAbstractTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/database/IgniteDbPutGetAbstractTest.java
index 05ee63dd098..5e94077ef1e 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/database/IgniteDbPutGetAbstractTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/database/IgniteDbPutGetAbstractTest.java
@@ -765,14 +765,14 @@ public abstract class IgniteDbPutGetAbstractTest extends IgniteDbAbstractTest {
/** */
private static int[] generateUniqueRandomKeys(int cnt, Random rnd) {
- int[] keys = new int[cnt];
+ Integer[] keys = new Integer[cnt];
for (int i = 0; i < cnt; i++)
keys[i] = i;
- Collections.shuffle(Arrays.asList(keys));
+ Collections.shuffle(Arrays.asList(keys), rnd);
- return keys;
+ return Arrays.stream(keys).mapToInt(x -> x).toArray();
}
/**