Skip to content

Commit 331b4f3

Browse files
committed
Catch IOException as well in test
1 parent 506f602 commit 331b4f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/com/rabbitmq/client/test/functional/SaslMechanisms.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ public void connectionCloseAuthFailure(String username, String password) throws
118118
if (paf instanceof AuthenticationFailureException) {
119119
fail("Not expecting AuthenticationFailureException " + failDetail);
120120
}
121+
} catch (IOException e) {
122+
// can happen if the broker closes the connection abruptly
121123
}
122124
}
123125

0 commit comments

Comments
 (0)