You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by me...@apache.org on 2025/08/29 06:30:58 UTC
(shardingsphere) branch master updated: Fix SetDistVariableExecutorTest (#36429)
This is an automated email from the ASF dual-hosted git repository.
menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 4071abee1ec Fix SetDistVariableExecutorTest (#36429)
4071abee1ec is described below
commit 4071abee1ec7f5264558aef71c96d6ead33c8e53
Author: Haoran Meng <me...@gmail.com>
AuthorDate: Fri Aug 29 14:30:53 2025 +0800
Fix SetDistVariableExecutorTest (#36429)
---
.../distsql/ral/updatable/variable/SetDistVariableExecutorTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/updatable/variable/SetDistVariableExecutorTest.java b/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/updatable/variable/SetDistVariableExecutorTest.java
index 69930ee00e8..40533d3480c 100644
--- a/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/updatable/variable/SetDistVariableExecutorTest.java
+++ b/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/updatable/variable/SetDistVariableExecutorTest.java
@@ -60,7 +60,7 @@ class SetDistVariableExecutorTest {
SetDistVariableStatement statement = new SetDistVariableStatement("proxy_frontend_flush_threshold", "1024");
ContextManager contextManager = mockContextManager();
executor.executeUpdate(statement, contextManager);
- assertThat(contextManager.getMetaDataContexts().getMetaData().getProps().getProps().getProperty("proxy-frontend-flush-threshold"), is("1024"));
+ assertThat(contextManager.getMetaDataContexts().getMetaData().getProps().getProps().get("proxy-frontend-flush-threshold"), is(1024));
assertThat(contextManager.getMetaDataContexts().getMetaData().getProps().getValue(ConfigurationPropertyKey.PROXY_FRONTEND_FLUSH_THRESHOLD), is(1024));
}
@@ -69,7 +69,7 @@ class SetDistVariableExecutorTest {
SetDistVariableStatement statement = new SetDistVariableStatement("proxy_meta_data_collector_enabled", "false");
ContextManager contextManager = mockContextManager();
executor.executeUpdate(statement, contextManager);
- assertThat(contextManager.getMetaDataContexts().getMetaData().getTemporaryProps().getProps().getProperty("proxy-meta-data-collector-enabled"), is(Boolean.FALSE.toString()));
+ assertThat(contextManager.getMetaDataContexts().getMetaData().getTemporaryProps().getProps().get("proxy-meta-data-collector-enabled"), is(Boolean.FALSE));
assertThat(contextManager.getMetaDataContexts().getMetaData().getTemporaryProps().getValue(TemporaryConfigurationPropertyKey.PROXY_META_DATA_COLLECTOR_ENABLED), is(false));
}