Skip to content

Commit

Permalink
test(SimPinFeederTest): attempt to address test flakiness due to timeout
Browse files Browse the repository at this point in the history
Occurred on GitHub actions:
    com.github.iusmac.sevensim.telephony.SimPinFeederTest > test_ShouldFinishAfterExceedingFixedWaitTimeoutForSimStatusChangeEvent FAILED
        org.awaitility.core.ConditionTimeoutException at SimPinFeederTest.java:905

Signed-off-by: iusmac <[email protected]>
  • Loading branch information
iusmac committed Dec 6, 2024
1 parent 3a18f1b commit 37fda52
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,9 @@ private void assertTaskTimedOut() {
await()
.dontCatchUncaughtExceptions()
.pollInSameThread()
.atMost(TASK_WAIT_TIMEOUT_DURATION.plusMillis(250L))
.atLeast(Duration.ofSeconds(3))
.atMost(TASK_WAIT_TIMEOUT_DURATION.plusSeconds(1))
.atLeast(TASK_WAIT_TIMEOUT_DURATION)
.pollInterval(Duration.ofMillis(50))
.until(() -> mTask.getState() == TERMINATED);
}

Expand Down

0 comments on commit 37fda52

Please sign in to comment.