cd545e08d5
* Implementing retries on failed user updates when finishing a quest. fixes #8035 * Refactoring mongo db retries to use the same as code path as original call and moving retries to count based over time based. * Adding tests for retry logic and updating retries to happen recursively * Moving callbacks to promises and other tweaks according to pr. * Chaging mongoose promise to use .catch() functionality * If all retries fail, the system will now throw an error instead of returning an error message.
How to run tests:
npm testis equivalent togulp test:api-v3which will run, in order,gulp lint,gulp test:api-v3:unitandgulp test:api-v3:integration. If one of these fails, the wholenpm testcommand blocks and fails. Each of these commands can also be run as a standalone command.- To run the server and the integrations tests in two different terminals (to better inspect the output in the server) run
npm startin one andnpm test:api-v3:integration:separate-serverin the other