Improve test code (#7121)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user