You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/03/09 11:49:32 UTC
(doris) 37/47: [enhancement] add_method_for_schemachange (#31849)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
commit 21e412393bfbee88d1e04d5003a53548758bc2af
Author: kkop <45...@users.noreply.github.com>
AuthorDate: Fri Mar 8 19:30:43 2024 +0800
[enhancement] add_method_for_schemachange (#31849)
---
.../groovy/org/apache/doris/regression/suite/Suite.groovy | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy
index 109b1c2a76c..6e32bbfd607 100644
--- a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy
+++ b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy
@@ -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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org