vldpyatkov commented on code in PR #13817:
URL: https://github.com/apache/ignite/pull/13817#discussion_r4578484771
##########
modules/core/src/test/java/org/apache/ignite/testframework/GridTestUtils.java:
##########
@@ -1986,6 +1986,17 @@ public static int sleepAndIncrement(int sleepDur, int i)
throws IgniteInterrupte
return i + 1;
}
+ /**
+ * Waits until the cached Ignite clock advances beyond its current value.
+ *
+ * @throws IgniteInterruptedCheckedException If interrupted.
+ */
+ public static void waitForNextClockTick() throws
IgniteInterruptedCheckedException {
Review Comment:
I think this method is useful for several cases, but all others are too shy
to do it in utils.
I am sure I can find a couple more places where the pattern of waiting for
tick of Ignite clock is used.
--
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]