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

Commit 4c95c72

Browse files
fix: generic stop
1 parent 534b0cf commit 4c95c72

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/core/components/stop.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = (self) => {
99
self.log('stop')
1010

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

1515
const done = (err) => {

test/core/interface/generic.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const common = {
2626
})
2727
},
2828
teardown: function (callback) {
29-
parallel(nodes.map((node) => (cb) => node.stop(cb)), callback)
29+
// No need to stop, because the test suite does a 'stop' test.
30+
// parallel(nodes.map((node) => (cb) => node.stop(cb)), callback)
31+
callback(null)
3032
}
3133
}
3234

0 commit comments

Comments
 (0)