openactive-archive / conformance-services

Harvests and normalises OpenActive Opportunity feeds to a common representation
MIT License
0 stars 0 forks source link

Don't run tests on DATABASE_URL #133

Open michaelwood opened 3 years ago

michaelwood commented 3 years ago

We ought to be running tests on a separate database to avoid any possibility of live data being deleted or changed by tests. Suggest we add TEST_DATABASE_URL and convert database.js to be an object that has an override on connection_pool to allow it to switch between using the different environment vars

michaelwood commented 3 years ago

a temporary solution is to add a "warning then sleep 5" to the delete database function to give people time to abort