aparna0522 commented on code in PR #4537:
URL: https://github.com/apache/cassandra/pull/4537#discussion_r2636621806
##########
test/unit/org/apache/cassandra/service/RetryStrategyTest.java:
##########
@@ -64,6 +69,26 @@ public void fuzzParser()
});
}
+ @Test
+ public void testSeededWaitRandomizer()
+ {
+ long wait1 = generateSeededWait(100);
+ long wait2 = generateSeededWait(100);
+ Assertions.assertThat(wait1).isEqualTo(wait2);
+
+ long wait3 = generateSeededWait(200);
+ Assertions.assertThat(wait1).isNotEqualTo(wait3);
+ }
+
+ private long generateSeededWait(int seed) {
Review Comment:
Nit: Small style thing - Cassandra’s style guide usually puts the opening
brace on the next line.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]