Closed ChristophB closed 10 months ago
I was able to reproduce the failed test in my development env. But it does not fail consistently.
Ok, found the culprit.
The issue is that code systems (i.e. OLS ontologies) are cached by CodeSystemRepository
to improve response times. The OLS mockup server only gets created in CodeServiceTest
. Calls to CodeSystemRepository::getAllCodeSystems
that are performed before the CodeServiceTest
init the cache with an empty array.
Test was working two weeks ago but is failing now - without any code changes.