mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for dataSource fill
This commit is contained in:
@@ -78,8 +78,13 @@ public class DruidDataSourceTest_fill2 extends TestCase {
|
||||
|
||||
Assert.assertEquals(0, fillErrorCount.get());
|
||||
|
||||
endLatch.await(1000, TimeUnit.MILLISECONDS);
|
||||
|
||||
for (int i = 0; i < 100; ++i) {
|
||||
endLatch.await(100, TimeUnit.MILLISECONDS);
|
||||
if (fillCount.get() > 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Assert.assertEquals(true, dataSource.isFull());
|
||||
Assert.assertEquals(true, fillCount.get() > 0);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user