This is a workaround for JUnit 5's strange handling of timeouts, particularly in the case where a thread does not respond to being interrupted. The autograder thread may finish, but the code under test may still be running, preventing the JVM from exiting.
This is a workaround for JUnit 5's strange handling of timeouts, particularly in the case where a thread does not respond to being interrupted. The autograder thread may finish, but the code under test may still be running, preventing the JVM from exiting.