Skip to content

Commit

Permalink
fixed issue with test and pings
Browse files Browse the repository at this point in the history
  • Loading branch information
sasbury committed May 5, 2020
1 parent ed78ea8 commit 8fdccec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/io/nats/client/impl/ErrorListenerTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ public void testDiscardedMessageFastProducer() throws Exception {
maxMessagesInOutgoingQueue(maxMessages).
discardMessagesWhenOutgoingQueueFull().
errorListener(handler).
pingInterval(Duration.ofSeconds(100)). // make this long so we don't ping during test
build();
NatsConnection nc = (NatsConnection) Nats.connect(options);

Expand Down Expand Up @@ -277,6 +278,7 @@ public void testDiscardedMessageServerClosed() throws Exception {
server(ts.getURI()).
maxMessagesInOutgoingQueue(maxMessages).
discardMessagesWhenOutgoingQueueFull().
pingInterval(Duration.ofSeconds(100)). // make this long so we don't ping during test
connectionListener(handler).
errorListener(handler).
build();
Expand Down

0 comments on commit 8fdccec

Please sign in to comment.