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;
|
||||
} 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) {
|
||||
|
|
Loading…
Reference in New Issue