Skip to content

Commit

Permalink
[Test] Use shorter timeout in ClientErrorsTest (apache#13177)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljmarshall authored Dec 8, 2021
1 parent 42469de commit 01d73aa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ public void testLookupWithDisconnection() throws Exception {

private void subscribeFailWithoutRetry(String topic) throws Exception {
@Cleanup
PulsarClient client = PulsarClient.builder().serviceUrl(mockBrokerService.getBrokerAddress()).build();
PulsarClient client = PulsarClient.builder().serviceUrl(mockBrokerService.getBrokerAddress())
.operationTimeout(1, TimeUnit.SECONDS).build();
final AtomicInteger counter = new AtomicInteger(0);

mockBrokerService.setHandleSubscribe((ctx, subscribe) -> {
Expand Down

0 comments on commit 01d73aa

Please sign in to comment.