Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
revert to use _.each in lifecycle (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyi-zhang authored May 2, 2018
1 parent 944ce83 commit efddd50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/integration/lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var statusCode = require('../utils/statusCode');
var cleaner = require('./cleaner');

function runLifecycle(testMatrix) {
testMatrix.forEach(function(service) {
var lifecycle = function(service) {
// Invalidate node cache
delete require.cache[require.resolve('../../brokerserver')];
delete require.cache[require.resolve('../../lib/broker/v2/')];
Expand Down Expand Up @@ -310,7 +310,9 @@ function runLifecycle(testMatrix) {

});

});
};

_.each(testMatrix, lifecycle);
}

runLifecycle(require('./test-matrix'));
Expand Down

0 comments on commit efddd50

Please sign in to comment.