Skip to content

Commit

Permalink
Fix testHandlerIsInvokedOnConnectionClose
Browse files Browse the repository at this point in the history
In elastic#45899 we introduced a faulty assertion, which this commit fixes.
  • Loading branch information
DaveCTurner committed Aug 29, 2019
1 parent 70b8d7b commit 3533c94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,7 @@ public void handleException(TransportException exp) {
assertThat(exp.getCause(), instanceOf(NodeNotConnectedException.class));
} else {
// here the concurrent disconnect was faster and invoked the listener first
assertThat(exp.getClass(), instanceOf(NodeDisconnectedException.class));
assertThat(exp, instanceOf(NodeDisconnectedException.class));
}
} finally {
latch.countDown();
Expand Down

0 comments on commit 3533c94

Please sign in to comment.