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 98e28ee6408 Fix : fix the 
assertGetConnectionsWhenConnectionCreateFailed in windows (#32270)
98e28ee6408 is described below

commit 98e28ee64082de0d5cce95ae56445bb850ec2f1d
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Fri Jul 26 11:09:35 2024 +0800

    Fix : fix the assertGetConnectionsWhenConnectionCreateFailed in windows 
(#32270)
---
 .../jdbc/core/connection/DriverDatabaseConnectionManagerTest.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/jdbc/src/test/java/org/apache/shardingsphere/driver/jdbc/core/connection/DriverDatabaseConnectionManagerTest.java
 
b/jdbc/src/test/java/org/apache/shardingsphere/driver/jdbc/core/connection/DriverDatabaseConnectionManagerTest.java
index 5f20a0fe983..f6f856666eb 100644
--- 
a/jdbc/src/test/java/org/apache/shardingsphere/driver/jdbc/core/connection/DriverDatabaseConnectionManagerTest.java
+++ 
b/jdbc/src/test/java/org/apache/shardingsphere/driver/jdbc/core/connection/DriverDatabaseConnectionManagerTest.java
@@ -164,7 +164,7 @@ class DriverDatabaseConnectionManagerTest {
     void assertGetConnectionsWhenConnectionCreateFailed() {
         SQLException ex = assertThrows(SQLException.class, () -> 
databaseConnectionManager.getConnections(DefaultDatabase.LOGIC_NAME, 
"invalid_ds", 0, 3, ConnectionMode.CONNECTION_STRICTLY));
         assertThat(ex.getMessage(), is("Can not get 3 connections one time, 
partition succeed connection(0) have released. "
-                + "Please consider increasing the 'maxPoolSize' of the data 
sources or decreasing the 'max-connections-size-per-query' in properties.\n"
+                + "Please consider increasing the 'maxPoolSize' of the data 
sources or decreasing the 'max-connections-size-per-query' in properties." + 
System.lineSeparator()
                 + "More details: java.sql.SQLException: Mock invalid data 
source"));
     }
     

Reply via email to