This is an automated email from the ASF dual-hosted git repository. jinmeiliao pushed a commit to branch support/1.12 in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/support/1.12 by this push: new 79ce10f GEODE-8623: Retry getting local host if it fails. (#5743) 79ce10f is described below commit 79ce10fd20f7ff16f15423d52d9daf94f958b091 Author: Jinmei Liao <jil...@pivotal.io> AuthorDate: Fri Apr 9 09:50:44 2021 -0700 GEODE-8623: Retry getting local host if it fails. (#5743) Co-authored-by: Jacob Barrett <jbarr...@pivotal.io> (cherry picked from commit 5deb409fe5498845b1365463b11f7a8d558c55f7) --- .../src/test/java/org/apache/geode/internal/RetryTest.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/geode-common/src/test/java/org/apache/geode/internal/RetryTest.java b/geode-common/src/test/java/org/apache/geode/internal/RetryTest.java index 09f0892..a3638a2 100644 --- a/geode-common/src/test/java/org/apache/geode/internal/RetryTest.java +++ b/geode-common/src/test/java/org/apache/geode/internal/RetryTest.java @@ -17,7 +17,6 @@ package org.apache.geode.internal; import static java.util.concurrent.TimeUnit.NANOSECONDS; import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.assertThatNoException; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.Mockito.mock; @@ -77,12 +76,6 @@ public class RetryTest { } @Test - public void timerSleepCanTakeNegativeArgument() throws Exception { - Retry.SteadyTimer steadyTimer = new Retry.SteadyTimer(); - assertThatNoException().isThrownBy(() -> steadyTimer.sleep(-2)); - } - - @Test public void lastIterationSleepForLessThanIntervalTime() throws Exception { assertThatThrownBy( () -> Retry.tryFor(2, NANOSECONDS, 3, NANOSECONDS, () -> null, Objects::nonNull, timer))