> @@ -236,7 +242,11 @@ public boolean apply(VolumeApi volumeApi) {
> assertNotNull(attachments);
> assertEquals(attachments.size(), before + 1);
>
> -
> assertEquals(volumeOption.get().get(testVolume.getId()).getStatus(),
> Volume.Status.IN_USE);
> + assertTrue(retry(new Predicate<VolumeApi>() {
> + public boolean apply(VolumeApi volumeApi) {
> + return volumeApi.get(testVolume.getId()).getStatus() ==
> Volume.Status.IN_USE;
> + }
> + }, 30 * 1000L).apply(volumeOption.get()));
Add a message here along the lines of "volume status was not IN_USE after 30s"
or so?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/392/files#r13737387