diff --git a/tests/test/java/com/github/iusmac/sevensim/telephony/SimPinFeederTest.java b/tests/test/java/com/github/iusmac/sevensim/telephony/SimPinFeederTest.java index e3737e5..50f8280 100644 --- a/tests/test/java/com/github/iusmac/sevensim/telephony/SimPinFeederTest.java +++ b/tests/test/java/com/github/iusmac/sevensim/telephony/SimPinFeederTest.java @@ -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); }