Closed beseven closed 7 years ago
The tests sometimes fail locally the first time around as the DB connection might not be available at that point.
The solution for Redis for consideration: https://github.com/mochajs/mocha/issues/268 https://github.com/perki/readyness
Simple bash script e.g. https://raw.githubusercontent.com/nhsuk/gp-finder/5ac65d141052743fff2ca2943c60b1e306588298/scripts/utils
Redundant now Elasticsearch is being used.
The tests sometimes fail locally the first time around as the DB connection might not be available at that point.
The solution for Redis for consideration: https://github.com/mochajs/mocha/issues/268 https://github.com/perki/readyness