Ignore exceptions a bit more gracefully
@@ -50,6 +50,7 @@ public class SimpleServerAndClientTest extends NetworkTestCommon {
public void test() throws IOException {
// TODO FIX
AbstractReferenceCounted.disableReferenceTracing();
+ expectException("Reference tracing disabled");
YamlLogging.setAll(false);
@@ -106,6 +107,7 @@ public class SimpleServerAndClientTest extends NetworkTestCommon {
// opens a server socket, that does not mean that there is a server
// running to read this, for example if you commented out "createServer(desc, eg); "
// and this time out exception will be thrown
+ expectException(exceptionKey -> exceptionKey.throwable == e, "Expected timeout");
continue;
}
eg.stop();
@@ -135,13 +137,4 @@ public class SimpleServerAndClientTest extends NetworkTestCommon {
ChronicleServerSocketChannel sc = TCPRegistry.acquireServerSocketChannel(desc);
sc.configureBlocking(false);
}
-
- @Override
- public void checkExceptions() {
- try {
- super.checkExceptions();
- } catch (Throwable e) {
- e.printStackTrace();
- }
- }
}
