Revision: 9320
Author: [email protected]
Date: Tue Nov 30 17:03:10 2010
Log: Fix some timeout typos, and increase delay on RequestFactoryTest.

Review at http://gwt-code-reviews.appspot.com/1163801

Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=9320

Modified:
/trunk/user/test/com/google/gwt/requestfactory/client/RequestFactoryExceptionHandlerTest.java /trunk/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java
 /trunk/user/test/com/google/gwt/requestfactory/shared/LocatorTest.java

=======================================
--- /trunk/user/test/com/google/gwt/requestfactory/client/RequestFactoryExceptionHandlerTest.java Fri Oct 1 18:15:55 2010 +++ /trunk/user/test/com/google/gwt/requestfactory/client/RequestFactoryExceptionHandlerTest.java Tue Nov 30 17:03:10 2010
@@ -25,6 +25,8 @@
  */
public class RequestFactoryExceptionHandlerTest extends RequestFactoryTest {

+  private static final int DELAY_TEST_FINISH = 5000;
+
   @Override
   public String getModuleName() {
return "com.google.gwt.requestfactory.RequestFactoryExceptionHandlerTest";
@@ -32,7 +34,7 @@

   @Override
   public void testServerFailureCheckedException() {
-    delayTestFinish(5000);
+    delayTestFinish(DELAY_TEST_FINISH);
     SimpleFooRequest context = req.simpleFooRequest();
     SimpleFooProxy rayFoo = context.create(SimpleFooProxy.class);
final Request<SimpleFooProxy> persistRay = context.persistAndReturnSelf().using(
@@ -46,7 +48,7 @@

   @Override
   public void testServerFailureRuntimeException() {
-    delayTestFinish(5000);
+    delayTestFinish(DELAY_TEST_FINISH);
     SimpleFooRequest context = req.simpleFooRequest();
     SimpleFooProxy rayFoo = context.create(SimpleFooProxy.class);
final Request<SimpleFooProxy> persistRay = context.persistAndReturnSelf().using(
=======================================
--- /trunk/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java Tue Nov 30 12:13:24 2010 +++ /trunk/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java Tue Nov 30 17:03:10 2010
@@ -172,7 +172,7 @@
     }
   }

-  private static final int DELAY_TEST_FINISH = 5000;
+  private static final int DELAY_TEST_FINISH = 10 * 1000;

public <T extends EntityProxy> void assertContains(Collection<T> col, T value) {
     EntityProxyId<?> lookFor = value.stableId();
@@ -616,7 +616,7 @@
   }

   public void testFindFindEdit() {
-    delayTestFinish(5000);
+    delayTestFinish(DELAY_TEST_FINISH);

final SimpleFooEventHandler<SimpleFooProxy> handler = new SimpleFooEventHandler<SimpleFooProxy>();
     EntityProxyChange.registerForProxyType(req.getEventBus(),
@@ -722,6 +722,7 @@

   public void testHistoryToken() {
     delayTestFinish(DELAY_TEST_FINISH);
+
     SimpleBarRequest context = simpleBarRequest();
     final SimpleBarProxy foo = context.create(SimpleBarProxy.class);
     final EntityProxyId<SimpleBarProxy> futureId = foo.stableId();
@@ -1933,6 +1934,8 @@
   }

   public void testServerFailureCheckedException() {
+    delayTestFinish(DELAY_TEST_FINISH);
+
     SimpleFooRequest context = simpleFooRequest();
     SimpleFooProxy newFoo = context.create(SimpleFooProxy.class);
final Request<SimpleFooProxy> persistRequest = context.persistAndReturnSelf().using(
=======================================
--- /trunk/user/test/com/google/gwt/requestfactory/shared/LocatorTest.java Tue Nov 30 12:13:24 2010 +++ /trunk/user/test/com/google/gwt/requestfactory/shared/LocatorTest.java Tue Nov 30 12:46:37 2010
@@ -88,7 +88,7 @@
   };

   private static final String ID = "DomainId";
-  private static final int TEST_DELAY = 500;
+  private static final int TEST_DELAY = 5000;

   private Factory factory;

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to