Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Panagis Tselentis committed Oct 26, 2017
1 parent 2202daa commit 8f3c049
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/controllers/KongNodeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ module.exports = _.merge(_.cloneDeep(require('../base/Controller')), {
return res.negotiate(err);
}

if(process.env.NODE_ENV == 'test') {
return res.created(node);
}

Kong.nodeInfo(node, function(err,info){

if(err) {
Expand Down

0 comments on commit 8f3c049

Please sign in to comment.