diff --git a/regression-test/suites/inverted_index_p0/index_format_v2/test_mow_table_with_format_v2.groovy b/regression-test/suites/inverted_index_p0/index_format_v2/test_mow_table_with_format_v2.groovy index 02aebbc3ecb258..3dacfe71a652f7 100644 --- a/regression-test/suites/inverted_index_p0/index_format_v2/test_mow_table_with_format_v2.groovy +++ b/regression-test/suites/inverted_index_p0/index_format_v2/test_mow_table_with_format_v2.groovy @@ -93,8 +93,8 @@ suite("test_mow_table_with_format_v2", "inverted_index_format_v2") { def process = cmd.execute() def output = new StringBuffer() def errorOutput = new StringBuffer() - process.consumeProcessOutput(output, errorOutput) - int exitCode = process.waitFor() + process.waitForProcessOutput(output, errorOutput) + int exitCode = process.exitValue() logger.info("Show config: code=" + exitCode + ", out=" + output + ", err=" + errorOutput) assertEquals(exitCode, 0) def configList = parseJson(output.toString().trim())