clear the snapshot repos after every doc

This commit is contained in:
Spencer Alger
2015-07-02 13:04:27 -07:00
parent c1f584cd3e
commit 863cb7a61c
4 changed files with 36 additions and 18 deletions

View File

@ -26,9 +26,10 @@ module.exports = function (branch) {
clientManager.create(apiVersion, port, done);
});
before(function (done) {
before(function () {
// make sure ES is empty
clientManager.get().clearEs(done);
this.timeout(0);
return clientManager.get().clearEs();
});
var files = _.map(require('./yaml_tests_' + _.snakeCase(branch) + '.json'), function (docs, filename) {