sampig / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

pollingConditions.eventually can get an IllegalArgumentException #383

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Using this gist: https://gist.github.com/dkowis/3b5af9fa6bafdd7aa962

It appears that the longer the delay in the loop (say for some kind of longer 
running task) the less iterations you'll get before we get an 
IllegalArgumentException in the Thread.sleep.

The test reliably reproduces the failure.

What version of Spock and Groovy are you using?
Spock version: 0.7-groovy-2.0

Referencing: https://groups.google.com/forum/#!topic/spockframework/FNPguVWDqWs

Original issue reported on code.google.com by dkowis on 20 Jan 2015 at 3:52