Too Long; Didn't Read
Many people are familiar with flaky tests. In this article, we will talk about how to avoid creating such tests. The most common cause of flaky tests is an unstable environment. Isolation with docker containers helps here. Schedulers may affect too. Make them configurable and turn them off in tests. Replace sleeps with Future.get(). Be aware of context switching.