You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by be...@apache.org on 2023/10/27 15:35:25 UTC
(cassandra-accord) branch trunk updated: Minor fixes to burn test parameters (#70)
This is an automated email from the ASF dual-hosted git repository.
benedict pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git
The following commit(s) were added to refs/heads/trunk by this push:
new 92272409 Minor fixes to burn test parameters (#70)
92272409 is described below
commit 92272409edb0c1851d60943e37dea7d9301914e7
Author: Youki Shiraishi <11...@users.noreply.github.com>
AuthorDate: Sat Oct 28 00:35:20 2023 +0900
Minor fixes to burn test parameters (#70)
---
accord-core/src/test/java/accord/burn/BurnTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/accord-core/src/test/java/accord/burn/BurnTest.java b/accord-core/src/test/java/accord/burn/BurnTest.java
index d8bb0ae0..5fa84f75 100644
--- a/accord-core/src/test/java/accord/burn/BurnTest.java
+++ b/accord-core/src/test/java/accord/burn/BurnTest.java
@@ -119,7 +119,7 @@ public class BurnTest
{
boolean isWrite = random.nextBoolean();
int readCount = 1 + random.nextInt(2);
- int writeCount = isWrite ? random.nextInt(3) : 0;
+ int writeCount = isWrite ? 1 + random.nextInt(2) : 0;
TreeSet<Key> requestKeys = new TreeSet<>();
while (readCount-- > 0)
@@ -400,7 +400,7 @@ public class BurnTest
List<Id> nodes = generateIds(false, random.nextInt(rf, rf * 3));
- burn(random, new TopologyFactory(rf, IntHashKey.ranges(random.nextInt(Math.max(nodes.size() + 1, rf), nodes.size() * 3))),
+ burn(random, new TopologyFactory(rf, IntHashKey.ranges(random.nextInt(nodes.size() + 1, nodes.size() * 3))),
clients,
nodes,
5 + random.nextInt(15),
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org