Forgus / spock

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

polling assertion for concurrent integration tests #197

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The example implementation and use can be found here:

https://github.com/gradle/gradle/blob/master/subprojects/integ-test/src/integTes
t/groovy/org/gradle/integtests/daemon/DaemonFunctionalTest.groovy

Basically, I'd like the assertion 'poll' until it passes or reasonable (and 
configurable) timeout:

poll {
  assert x == y
  assert ...
}

poll(5000) {
  assert x == y
}

It would be very nice if this feature was in the framework :-D

Original issue reported on code.google.com by szcze...@gmail.com on 1 Sep 2011 at 8:53

GoogleCodeExporter commented 8 years ago
There's now PollingConditions.

Original comment by pnied...@gmail.com on 4 Oct 2012 at 7:15