Skip to content

Commit

Permalink
[enhancement]use awaitility.await() replace thread.sleep()
Browse files Browse the repository at this point in the history
  • Loading branch information
cjj2010 committed Jul 16, 2024
1 parent 5f9669b commit 824d3a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class WaitForAction implements SuiteAction {

@Override
void run() {
if (ObjectUtils.isEmpty(time){
if (ObjectUtils.isEmpty(time)|| time == 0){
time = 600
}
Awaitility.await().atMost(time, TimeUnit.SECONDS).with().pollDelay(100, TimeUnit.MILLISECONDS).and().pollInterval(100, TimeUnit.MILLISECONDS).await().until(() -> {
Expand Down

0 comments on commit 824d3a0

Please sign in to comment.