Skip to content

Commit

Permalink
fix regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
seawinde committed Oct 22, 2024
1 parent 3d6b879 commit 43558ca
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ class Suite implements GroovyInterceptable {
for (String mv_name : mv_names) {
def splitResult = result.split("MaterializedViewRewriteFail")
def each_result = splitResult.length == 2 ? splitResult[0].contains(mv_name) : false
success = success && (result.contains"(${mv_name})" || each_result)
success = success && (result.contains("(${mv_name})") || each_result)
}
Assert.assertEquals(true, success)
}
Expand Down Expand Up @@ -1640,7 +1640,7 @@ class Suite implements GroovyInterceptable {
for (String mv_name : mv_names) {
def splitResult = result.split("MaterializedViewRewriteFail")
def each_result = splitResult.length == 2 ? splitResult[0].contains(mv_name) : false
success = success || (result.contains"(${mv_name})" || each_result)
success = success || (result.contains("(${mv_name})") || each_result)
}
Assert.assertEquals(true, success)
}
Expand Down Expand Up @@ -1669,7 +1669,7 @@ class Suite implements GroovyInterceptable {
sql("${query_sql}")
check { result ->
def splitResult = result.split("MaterializedViewRewriteFail")
result.contains"(${mv_name})" || (splitResult.length == 2 ? splitResult[0].contains(mv_name) : false)
result.contains("(${mv_name})") || (splitResult.length == 2 ? splitResult[0].contains(mv_name) : false)
}
}
return
Expand Down

0 comments on commit 43558ca

Please sign in to comment.