Ignore rather than expect an exception
@@ -260,7 +260,7 @@ class UberHandlerTest extends NetworkTestCommon {
expectException("Rejected in onInitialize");
REJECTING_SUB_HANDLER_SHOULD_REJECT.set(true);
testHarness.registerSubHandler(new WritableRejectingSubHandler());
- expectException("handler == null, check that the Csp/Cid has been sent");
+ ignoreException("handler == null, check that the Csp/Cid has been sent");
testHarness.sendMessageToCurrentHandler();
testHarness.callProcess();
assertFalse(REJECTED_HANDLER_ONREAD_CALLED.get());
@@ -275,7 +275,7 @@ class UberHandlerTest extends NetworkTestCommon {
expectException("Rejected in onRead");
REJECTING_SUB_HANDLER_SHOULD_REJECT.set(true);
testHarness.sendMessageToCurrentHandler();
- expectException("handler == null, check that the Csp/Cid has been sent");
+ ignoreException("handler == null, check that the Csp/Cid has been sent");
testHarness.sendMessageToCurrentHandler();
testHarness.callProcess();
assertFalse(REJECTED_HANDLER_ONWRITE_CALLED.get());
@@ -290,7 +290,7 @@ class UberHandlerTest extends NetworkTestCommon {
expectException("Rejected in onWrite");
REJECTING_SUB_HANDLER_SHOULD_REJECT.set(true);
testHarness.callProcess();
- expectException("handler == null, check that the Csp/Cid has been sent");
+ ignoreException("handler == null, check that the Csp/Cid has been sent");
testHarness.sendMessageToCurrentHandler();
testHarness.callProcess();
assertFalse(REJECTED_HANDLER_ONWRITE_CALLED.get());
