This is an automated email from the ASF dual-hosted git repository.
sunnianjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 6f4464fcb48 Fix RetryExecutorTest (#25746)
6f4464fcb48 is described below
commit 6f4464fcb4800147885ff500174ccb2bf1d9fdd9
Author: Liang Zhang <[email protected]>
AuthorDate: Thu May 18 00:35:05 2023 +0800
Fix RetryExecutorTest (#25746)
---
.../org/apache/shardingsphere/infra/util/retry/RetryExecutorTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/infra/util/src/test/java/org/apache/shardingsphere/infra/util/retry/RetryExecutorTest.java
b/infra/util/src/test/java/org/apache/shardingsphere/infra/util/retry/RetryExecutorTest.java
index 234eace517e..4d15c1a6cd9 100644
---
a/infra/util/src/test/java/org/apache/shardingsphere/infra/util/retry/RetryExecutorTest.java
+++
b/infra/util/src/test/java/org/apache/shardingsphere/infra/util/retry/RetryExecutorTest.java
@@ -33,7 +33,7 @@ class RetryExecutorTest {
@Test
void assertExecuteTimeout() {
- assertFalse(new RetryExecutor(5L, 2L).execute(value -> false, -1));
+ assertFalse(new RetryExecutor(5L, 2L).execute(value -> value > 0, -1));
}
@Test