timoninmaxim commented on code in PR #11609:
URL: https://github.com/apache/ignite/pull/11609#discussion_r1812847369
##########
modules/core/src/test/java/org/apache/ignite/testframework/GridTestUtils.java:
##########
@@ -2608,37 +2603,20 @@ public static long sleep() {
// No-op
}
}
- while ((remainTime = end - System.currentTimeMillis()) > 0);
+ while ((remainTime = end - U.currentTimeMillis()) > 0);
return sleepMs;
}
- /**
- * Delays execution for {@code duration} milliseconds.
- *
- * @param duration Duration.
- * @return amount of milliseconds to delay.
- */
- @QuerySqlFunction
- public static long delay(long duration) {
- try {
- Thread.sleep(duration);
- }
- catch (InterruptedException ignored) {
- // No-op
- }
-
- return duration;
- }
-
/**
* Function do fail in case of {@code fail} is true, return 0
otherwise.
*
+ * @param canFail fail flag
* @return in case of {@code fail} is false return 0, fail otherwise.
*/
@QuerySqlFunction
- public static int can_fail() {
- if (fail)
+ public static int can_fail(boolean canFail) {
Review Comment:
let's name param `fail`
--
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]