**APM Server version** (`apm-server version`): **Description of the problem including expected versus actual behavior**: CI tests have been failing a lot more often lately. unit test failure seems to be ~38% according to github action perf metrics. We should look into any flaky test **Steps to reproduce**: 1. 2. 3. **Provide logs (if relevant)**: