Revision: 9325
Author: [email protected]
Date: Wed Dec  1 08:29:33 2010
Log: Cherry pick r9320 to releases/2.1, Fix some timeout typos, and increase delay on RequestFactoryTest

http://code.google.com/p/google-web-toolkit/source/detail?r=9325

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

=======================================
--- /releases/2.1/user/test/com/google/gwt/requestfactory/client/RequestFactoryExceptionHandlerTest.java Fri Oct 1 18:15:55 2010 +++ /releases/2.1/user/test/com/google/gwt/requestfactory/client/RequestFactoryExceptionHandlerTest.java Wed Dec 1 08:29:33 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(
=======================================
--- /releases/2.1/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java Tue Nov 30 13:01:46 2010 +++ /releases/2.1/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java Wed Dec 1 08:29:33 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(
=======================================
--- /releases/2.1/user/test/com/google/gwt/requestfactory/shared/LocatorTest.java Tue Nov 30 13:01:46 2010 +++ /releases/2.1/user/test/com/google/gwt/requestfactory/shared/LocatorTest.java Wed Dec 1 08:29:33 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