You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/05/28 08:13:43 UTC

[GitHub] [shardingsphere] kimmking commented on a change in pull request #5821: Fix test error.

kimmking commented on a change in pull request #5821:
URL: https://github.com/apache/shardingsphere/pull/5821#discussion_r431658715



##########
File path: shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/connection/BackendConnectionTest.java
##########
@@ -264,4 +266,14 @@ public void assertFailedSwitchSchemaWhileBegin() {
         transactionManager.begin();
         backendConnection.setCurrentSchema("newSchema");
     }
+    
+    @SneakyThrows(ReflectiveOperationException.class)
+    @After
+    public void clean() {
+        Field field = ProxySchemaContexts.getInstance().getClass().getDeclaredField("backendDataSource");
+        field.setAccessible(true);
+        Object datasource = Class.forName("org.apache.shardingsphere.proxy.backend.schema.ProxySchemaContexts$JDBCBackendDataSource")

Review comment:
       field.getType




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org