Skip to content

Commit 74c89fe

Browse files
committed
update testing setup.js
1 parent f9cb018 commit 74c89fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/lib/setup.js

+3
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ function startController(isStartAdapter, onObjectChange, onStateChange, callback
499499
console.error('Controller is already started!');
500500
} else {
501501
console.log('startController...');
502+
adapterStarted = false;
502503
var isObjectConnected;
503504
var isStatesConnected;
504505

@@ -586,6 +587,7 @@ function stopAdapter(cb) {
586587
}, 0);
587588
}
588589
} else {
590+
adapterStarted = false;
589591
pid.on('exit', function (code, signal) {
590592
if (pid) {
591593
console.log('child process terminated due to receipt of signal ' + signal);
@@ -682,4 +684,5 @@ if (typeof module !== undefined && module.parent) {
682684
module.exports.installAdapter = installAdapter;
683685
module.exports.appName = appName;
684686
module.exports.adapterName = adapterName;
687+
module.exports.adapterStarted = adapterStarted;
685688
}

0 commit comments

Comments
 (0)