Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx committed Jan 23, 2024
1 parent f7895ea commit f1427ba
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package org.apache.doris.regression.action
import groovy.util.logging.Slf4j
import org.apache.doris.regression.suite.SuiteContext
import org.apache.doris.regression.util.JdbcUtils
import org.junit.Assert

@Slf4j
class WaitForAction implements SuiteAction{
Expand Down Expand Up @@ -52,16 +53,16 @@ class WaitForAction implements SuiteAction{
while (time--) {
log.info("sql is :\n${sql}")
def (result, meta) = JdbcUtils.executeToList(context.getConnection(), sql)
res = result.get(0).get(9)
String res = result.get(0).get(9)
if (res == "FINISHED" || res == "CANCELLED") {
assertEquals("FINISHED", res)
Assert.assertEquals("FINISHED", res)
sleep(3000)
break
} else {
Thread.sleep(2000)
if (max_try_secs < 1) {
log "test timeout," + "state:" + res
assertEquals("FINISHED",res)
if (time < 1) {
log.info("test timeout," + "state:" + res)
Assert.assertEquals("FINISHED",res)
}
}
}
Expand Down

0 comments on commit f1427ba

Please sign in to comment.