Saturday, October 31, 2009

[gwt-2.0.0-ms2] com.google.gwt.junit.client.TimeoutException: The browser did not contact the server within 60000ms.

Hello,

I have a fully working webapp built with GWT-2.0.0-ms2's UiBinder.
Recently I decided to get it covered by unit tests using GWTTestCase,
but after coding a simple test case:

public class MyTest extends GWTTestCase {

@Override public String getModuleName() {
return "foo.bar.MyApp";
}

public void testAnythingYouWant() {
assertTrue(true);
}

I stumbled on this:

com.google.gwt.junit.client.TimeoutException: The browser did not
contact the server within 60000ms.
- 1 client(s) haven't responded back to JUnitShell since the start of
the test.
Actual time elapsed: 60.009 seconds.

at com.google.gwt.junit.JUnitShell.notDone(JUnitShell.java:800)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:989)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:436)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
386)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:269)
at com.intellij.junit3.JUnit3IdeaTestRunner.doRun
(JUnit3IdeaTestRunner.java:108)
at com.intellij.rt.execution.junit.JUnitStarter.main
(JUnitStarter.java:60)

Process finished with exit code 255

The same test works fine when targeting a module NOT UiBinder-based.

Any hint? I am using IDEA on a Mac, with the following VM arguments:
-XstartOnFirstThread -Xmx512M

Thanks in advance,
Tiago Fernandez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate