On 24/06/2020 12:14, Vyom Tiwari wrote:
3-> Looking at SocketAcceptInterruptTest it looks like the test will succeed if it manages to send the signal - and that's it. Is it really a measure of success? No, I explained inĀ question 2.
So basically you rely on the test infrastructure having registered an UncaughtExceptionHandler to catch the exception thrown by your server thread. I would prederably not rely on this, and instead check whether the exception has been thrown by the server thread from the main thread. best regards, -- daniel