Skip to content

Commit

Permalink
Change the default polling interval.
Browse files Browse the repository at this point in the history
Set it to 5s from 2.5s. This is the same as the default in qds-sdk-py.
  • Loading branch information
Rohit Agarwal committed Aug 11, 2015
1 parent 335fbfb commit 00803e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class ResultLatch

private static final ExecutorService executorService = Executors.newCachedThreadPool(new ThreadFactoryBuilder().setNameFormat("ResultLatch-%d").setDaemon(true).build());

private static final int DEFAULT_POLL_MS = 2500;
private static final int DEFAULT_POLL_MS = 5000;

private static final String STATUS_DONE = "done";
private static final String STATUS_WAITING = "waiting";
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/qubole/qds/sdk/java/TestResultLatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public <T> Future<T> invokeRequest(ForPage forPage, RequestDetails requestDetail
}
};
ResultLatch resultLatch = new ResultLatch(mockClient, 1);
Assert.assertTrue(resultLatch.await(10, TimeUnit.SECONDS));
Assert.assertTrue(resultLatch.await(20, TimeUnit.SECONDS));
Assert.assertTrue(count.get() <= 0);
}

Expand Down

0 comments on commit 00803e0

Please sign in to comment.