The unit test testInterruptibility is based on the assumption that after 500ms the matching thread is still running. Looks like JDK 11 has some performance improvements, so that running a thread and doing the matching takes less significantly less time. See commoncrawl/ia-web-commons#25.
Solution: if the thread running the regexp matching is already finished after the initial/current sleeping time, rerun the test with a shorter sleeping time until the expected RuntimeException is hit.
The unit test testInterruptibility is based on the assumption that after 500ms the matching thread is still running. Looks like JDK 11 has some performance improvements, so that running a thread and doing the matching takes less significantly less time. See commoncrawl/ia-web-commons#25.
Solution: if the thread running the regexp matching is already finished after the initial/current sleeping time, rerun the test with a shorter sleeping time until the expected RuntimeException is hit.