jclouds has a class RetryablePredicate you can consider using for this.

-A
On Sep 2, 2011 10:10 AM, "Andrei Savu" <[email protected]> wrote:
> On Fri, Sep 2, 2011 at 6:24 AM, David Alves <[email protected]> wrote:
>> So is this a timing problem? Is the test method being executed before
TestService completely installed the recipes?
>
> Looks like a timing problem. I guess that a successful chef recipe
> execution does not also mean the service is available to answer
> requests. I believe you should add a retry loop around the check (e.g.
> 10 times with 1 second wait between checks).
>
> Cheers,
> Andrei

Reply via email to