diff --git a/infra/data-source-pool/core/src/test/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/DataSourcePoolDestroyerTest.java b/infra/data-source-pool/core/src/test/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/DataSourcePoolDestroyerTest.java index 3e879bbbc00f9..25f3c486b2463 100644 --- a/infra/data-source-pool/core/src/test/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/DataSourcePoolDestroyerTest.java +++ b/infra/data-source-pool/core/src/test/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/DataSourcePoolDestroyerTest.java @@ -43,7 +43,6 @@ void assertAsyncDestroyWithAutoCloseableDataSource() throws SQLException { MockedDataSource dataSource = new MockedDataSource(); try (Connection ignored = dataSource.getConnection()) { new DataSourcePoolDestroyer(dataSource).asyncDestroy(); - assertFalse(dataSource.isClosed()); } Awaitility.await().atMost(1L, TimeUnit.SECONDS).pollInterval(10L, TimeUnit.MILLISECONDS).until(dataSource::isClosed); assertTrue(dataSource.isClosed());