Improve test code (#7121)

This commit is contained in:
Diamond Lewis
2021-01-13 12:40:18 -05:00
committed by GitHub
parent e08618e377
commit c8cdcbe10e
4 changed files with 13 additions and 102 deletions

View File

@@ -134,6 +134,7 @@ const reconfigureServer = changedConfiguration => {
if (error) {
reject(error);
} else {
Parse.CoreManager.set('REQUEST_ATTEMPT_LIMIT', 1);
resolve(parseServer);
}
},
@@ -142,7 +143,6 @@ const reconfigureServer = changedConfiguration => {
});
cache.clear();
parseServer = ParseServer.start(newConfiguration);
parseServer.app.use(require('./testing-routes').router);
parseServer.expressApp.use('/1', err => {
console.error(err);
fail('should not call next');