exempt NodeCommunicationException as well

This commit is contained in:
Mike McCandless 2016-01-24 19:50:59 -05:00
parent 1ae7291429
commit 33890681a0
1 changed files with 2 additions and 2 deletions

View File

@ -127,13 +127,13 @@ public class SimpleServer extends LuceneTestCase {
success = true;
} catch (Throwable t) {
if (t instanceof SocketException == false) {
if (t instanceof SocketException == false && t instanceof NodeCommunicationException == false) {
node.message("unexpected exception handling client connection:");
t.printStackTrace(System.out);
// Test should fail with this:
throw new RuntimeException(t);
} else {
node.message("SocketException " + t + " handling client connection; ignoring");
node.message("exception " + t + " handling client connection; ignoring");
}
} finally {
if (success) {