[enhancement] add_method_for_schemachange (#31849)

This commit is contained in:
kkop
2024-03-08 19:30:43 +08:00
committed by yiguolei
parent aaa5542fb9
commit 21e412393b

View File

@ -546,6 +546,17 @@ class Suite implements GroovyInterceptable {
}
}
void expectException(Closure userFunction, String tableName, String errorMessage = null) {
try {
userFunction()
} catch (Exception e) {
if (e.getMessage()!= errorMessage) {
throw e
}
}
}
String getBrokerName() {
String brokerName = context.config.otherConfigs.get("brokerName")
return brokerName