0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed mocha retries config

no issue

Retries can result in bogus error messages for any non-idempotent tests with multiple assertions, causing frustrating test debug experiences.

An example:

1. Members import test runs
2. Import succeeds, count assertions pass, assertion for "import label" presence fails
3. Mocha re-runs the test
4. "Imported member" count assertions now fail because the importer won't import duplicates and the db is not cleared for each individual test for performance
5. Mocha reports a test failure as the imported count being incorrect rather than the missing label
This commit is contained in:
Kevin Ansfield 2020-07-22 18:16:36 +01:00
parent 8ceabbcfba
commit b2798fef96

View file

@ -127,7 +127,6 @@ const configureGrunt = function (grunt) {
reporter: grunt.option('reporter') || 'spec',
timeout: '60000',
require: ['core/server/overrides'],
retries: '3',
exit: true
},