mirror of https://github.com/apache/lucene.git
exempt NodeCommunicationException as well
This commit is contained in:
parent
1ae7291429
commit
33890681a0
|
@ -127,13 +127,13 @@ public class SimpleServer extends LuceneTestCase {
|
||||||
|
|
||||||
success = true;
|
success = true;
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
if (t instanceof SocketException == false) {
|
if (t instanceof SocketException == false && t instanceof NodeCommunicationException == false) {
|
||||||
node.message("unexpected exception handling client connection:");
|
node.message("unexpected exception handling client connection:");
|
||||||
t.printStackTrace(System.out);
|
t.printStackTrace(System.out);
|
||||||
// Test should fail with this:
|
// Test should fail with this:
|
||||||
throw new RuntimeException(t);
|
throw new RuntimeException(t);
|
||||||
} else {
|
} else {
|
||||||
node.message("SocketException " + t + " handling client connection; ignoring");
|
node.message("exception " + t + " handling client connection; ignoring");
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (success) {
|
if (success) {
|
||||||
|
|
Loading…
Reference in New Issue