mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fix testcase
This commit is contained in:
@@ -74,7 +74,9 @@ public class DruidDataSourceTest_exceptionSorter extends TestCase {
|
||||
|
||||
long createCount = dataSource.getCreateCount();
|
||||
assertTrue(createCount == 2 || createCount == 3);
|
||||
assertEquals(createCount - 1, dataSource.getDiscardCount());
|
||||
long discardCount = dataSource.getDiscardCount();
|
||||
assertTrue("createCount : " + createCount
|
||||
, createCount == discardCount || createCount - 1 == discardCount);
|
||||
assertEquals(1, dataSource.getPoolingCount());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user