[jboss-cvs] JBossAS SVN: r91682 - branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jca/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jul 27 12:17:16 EDT 2009


Author: jesper.pedersen
Date: 2009-07-27 12:17:15 -0400 (Mon, 27 Jul 2009)
New Revision: 91682

Modified:
   branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jca/test/PreFillPoolingUnitTestCase.java
Log:
Increase wait time

Modified: branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jca/test/PreFillPoolingUnitTestCase.java
===================================================================
--- branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jca/test/PreFillPoolingUnitTestCase.java	2009-07-27 15:46:51 UTC (rev 91681)
+++ branches/JBPAPP_5_0/testsuite/src/main/org/jboss/test/jca/test/PreFillPoolingUnitTestCase.java	2009-07-27 16:17:15 UTC (rev 91682)
@@ -151,7 +151,7 @@
       getServer().invoke(PREFILL_POOL, FLUSH_METHOD_NAME, new Object[0], new String[0]);
       
       //Let pool filler run
-      Thread.sleep(2000);
+      Thread.sleep(5000);
       
       count = (Integer)getServer().getAttribute(PREFILL_POOL, CONN_NAME);
       min = (Integer)getServer().getAttribute(PREFILL_POOL, MIN_NAME);
@@ -230,7 +230,7 @@
       DataSource ds = (DataSource)ctx.lookup("java:/CriPreFillDS");
       Connection conn = ds.getConnection("sa", "");
       
-      Thread.sleep(10000);
+      Thread.sleep(20000);
       count = (Integer)getServer().getAttribute(CRI_PREFILL_POOL, CONN_NAME);
       min = (Integer)getServer().getAttribute(CRI_PREFILL_POOL, MIN_NAME);
       
@@ -249,7 +249,7 @@
       assertTrue(count.intValue() != min.intValue());
       
       conn = ds.getConnection("sa", "");
-      Thread.currentThread().sleep(10000);
+      Thread.currentThread().sleep(20000);
       
       count = (Integer)getServer().getAttribute(CRI_PREFILL_POOL, CONN_NAME);
       min = (Integer)getServer().getAttribute(CRI_PREFILL_POOL, MIN_NAME);
@@ -270,7 +270,7 @@
       support.prefill(null, null, false);
       
       //Let pool fill
-      Thread.sleep(5000);
+      Thread.sleep(10000);
       
       int currentSize = mcp.getConnectionCount();
       assertTrue(currentSize == minSize);
@@ -289,7 +289,7 @@
       support.prefill(null, null, false);
       
       //Let pool fill
-      Thread.sleep(5000);
+      Thread.sleep(10000);
       
       int currentSize = mcp.getConnectionCount();
       assertTrue(currentSize == 0);
@@ -309,7 +309,7 @@
       support.prefill(null, null, false);
       
       //Let pool fill
-      Thread.sleep(5000);
+      Thread.sleep(10000);
       
       int currentSize = mcp.getConnectionCount();
       assertTrue(currentSize == minSize);




More information about the jboss-cvs-commits mailing list