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 4c393fb delete invoid test case (#16071)
4c393fb is described below
commit 4c393fb987e82f9c94205a2b609104561b0053ea
Author: JingShang Lu <[email protected]>
AuthorDate: Mon Mar 14 23:41:47 2022 +0800
delete invoid test case (#16071)
---
.../jdbc/connection/JDBCBackendConnectionTest.java | 21 ---------------------
1 file changed, 21 deletions(-)
diff --git
a/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/connection/JDBCBackendConnectionTest.java
b/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/connection/JDBCBackendConnectionTest.java
index 7f3d93e..4009f98 100644
---
a/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/connection/JDBCBackendConnectionTest.java
+++
b/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/connection/JDBCBackendConnectionTest.java
@@ -202,27 +202,6 @@ public final class JDBCBackendConnectionTest {
}
@Test
- public void assertMultiThreadsGetConnection() throws SQLException,
InterruptedException {
- MockConnectionUtil.setCachedConnections(backendConnection, "ds1", 10);
- when(backendDataSource.getConnections(anyString(), anyString(), eq(2),
any())).thenReturn(MockConnectionUtil.mockNewConnections(2));
- Thread thread1 = new Thread(this::assertOneThreadResult);
- Thread thread2 = new Thread(this::assertOneThreadResult);
- thread1.start();
- thread2.start();
- thread1.join();
- thread2.join();
- }
-
- @SneakyThrows(SQLException.class)
- private void assertOneThreadResult() {
- connectionSession.getTransactionStatus().setInTransaction(true);
- List<Connection> actualConnections =
backendConnection.getConnections("ds1", 12, ConnectionMode.MEMORY_STRICTLY);
- assertThat(actualConnections.size(), is(12));
- assertThat(backendConnection.getConnectionSize(), is(12));
- assertTrue(connectionSession.getTransactionStatus().isInTransaction());
- }
-
- @Test
public void assertIsNotSerialExecuteWhenNotInTransaction() {
connectionSession.getTransactionStatus().setInTransaction(false);
assertFalse(backendConnection.isSerialExecute());