Skip to content

Commit

Permalink
Fix:DataSourcePoolDestroyerTest occasionally fails(#28550)
Browse files Browse the repository at this point in the history
  • Loading branch information
lujx98 committed Sep 22, 2023
1 parent 1305c71 commit 40501ae
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 40501ae

Please sign in to comment.