[enhancement] add_method_for_schemachange (#31849)
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user