> @@ -112,11 +111,8 @@ public void testListJobs() {
>
> @Test(groups = {"live", "livelong", "longtest"}, dependsOnMethods =
> {"testInitiateJob", "testDescribeJob", "testListJobs"})
> public void testWaitForSucceed() throws InterruptedException {
> - Thread.sleep(INITIAL_WAIT);
> - while (api.describeJob(VAULT_NAME,
> archiveRetrievalJob).getStatusCode() == JobStatus.IN_PROGRESS ||
> - api.describeJob(VAULT_NAME,
> inventoryRetrievalJob).getStatusCode() == JobStatus.IN_PROGRESS) {
> - Thread.sleep(TIME_BETWEEN_POLLS);
> - }
> + new BasePollingStrategy(api).waitForSuccess(VAULT_NAME,
> archiveRetrievalJob);
This will wait for **three hours**? Does it make sense to have a live test like
that?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/44/files#r15726059