Elasticsearch in tests
Job #2092053 failed for 29899725:
Tests are executed in a random order. While the database is unchanged in between tests, elasticsearch is updated but not reset. This means that if tests for "delete" methods are executed before tests that change the same entries, we get elasticsearch errors.
Possible ways to fix:
- Ensure no delete actions occur on things that are used in other tests (create new object in test, then delete that one)
- Reset/refresh elasticsearch index in setup method of test classes that use elasticsearch