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

Commit

Permalink
fix: generic stop
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Feb 13, 2018
1 parent 534b0cf commit 4c95c72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/components/stop.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = (self) => {
self.log('stop')

if (self.state.state() !== 'running') {
return done(new Error('Not able to stop from state: ' + self.state.state()))
return callback(new Error('Not able to stop from state: ' + self.state.state()))
}

const done = (err) => {
Expand Down
4 changes: 3 additions & 1 deletion test/core/interface/generic.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const common = {
})
},
teardown: function (callback) {
parallel(nodes.map((node) => (cb) => node.stop(cb)), callback)
// No need to stop, because the test suite does a 'stop' test.
// parallel(nodes.map((node) => (cb) => node.stop(cb)), callback)
callback(null)
}
}

Expand Down

0 comments on commit 4c95c72

Please sign in to comment.