OK. Last post but just in case somebody hits this in the future. I have a
simple unit test (below) that fails about 50% of the time... However it
doesn't fail in 2.5-rc1 so as it is so obscure anyway I won't raise a issue.
Sorry for the spam!
package com.google.gwt.sample.dynatablerf.client;
Sorry for talking to myself but...
waitForBackgroundJavaScriptStartingBefore looks like a possible cause. It
is called here:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/junit/RunStyleHtmlUnit.java#158
with a value of 2s the implementation of this
On Wednesday, July 11, 2012 9:21:10 AM UTC+2, salk31 wrote:
Sorry for talking to myself but...
waitForBackgroundJavaScriptStartingBefore looks like a possible cause. It
is called here:
Hi Thomas,
It is called at the loading of the page but the HtmlUnitThread only runs
while that call is blocking...
I'm struggling to point the finger at a particular line of code but:
* Fiddling with the number of seconds GWT specifies to HTMLUnit can make
the problem appear and disappear (a
Thanks Joseph,
I'd like to have events fired as the RPC queue changes but my boss, quite
rightly, would kill me if I changed production code to get the unit tests
to work ;)
I've just tried using a Timer (the GWT one) but still stalls :(
Regards
Sam
On Saturday, July 7, 2012 2:48:46 AM
Maybe related to this:
http://code.google.com/p/google-web-toolkit/issues/detail?id=2391
(Only just remembered that Timer exists!)
On Friday, July 6, 2012 10:23:02 AM UTC+1, salk31 wrote:
Has anybody else had cases where Scheduler and DeferredCommands have
stopped being scheduled/run when
Has anybody else had cases where Scheduler and DeferredCommands have
stopped being scheduled/run when used in unit tests?
We have a lot of async code so need to use them a lot but currently,
seemingly at random, our tests stall until they get timed out. Even setting
up a periodic job that is
I have found that scheduling a deferred event can be at times an
anti-pattern. For example, let's say I've got a bunch of UI elements
getting initialized. I had in the past used a deferred command to finish
the UI init once everything is there. In this case there would be errors
that occurred