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 a4a778d commit e39beba
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) || time == 0) {
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 e39beba

Please sign in to comment.