add testcase & bug fixed

This commit is contained in:
wenshao
2012-08-25 12:18:45 +08:00
parent 2ca722227f
commit 0daea54514
2 changed files with 12 additions and 1 deletions
@@ -17,6 +17,7 @@ package com.alibaba.druid.bvt.pool;
import java.sql.Connection;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import junit.framework.Assert;
import junit.framework.TestCase;
@@ -91,6 +92,6 @@ public class TestGraceShutdown extends TestCase {
}
}.start();
endLatch.await();
Assert.assertTrue(endLatch.await(60, TimeUnit.SECONDS));
}
}