Use an event to wait for the thread to start before shutting down.
Also, use a daemonic thread so that the test runner doesn't hand waiting for the thread to die.
Showing
Please register or sign in to comment
Also, use a daemonic thread so that the test runner doesn't hand waiting for the thread to die.