diff --git a/package.json b/package.json index de271ad6..37958340 100644 --- a/package.json +++ b/package.json @@ -40,12 +40,12 @@ "i2c-bus": "^1.2.2" }, "devDependencies": { - "grunt": "^0.4.5", - "grunt-replace": "^0.9.3", - "grunt-contrib-jshint": "^0.11.2", - "grunt-jscs": "^2.0.0", - "grunt-http": "^1.6.0", - "mocha": "^2.3.4", - "chai": "^3.4.1" + "grunt": "^1.0.1", + "grunt-replace": "^1.0.1", + "grunt-contrib-jshint": "^1.1.0", + "grunt-jscs": "^3.0.1", + "grunt-http": "^2.2.0", + "mocha": "^3.5.3", + "chai": "^4.1.2" } -} +} \ No newline at end of file diff --git a/test/lib/setup.js b/test/lib/setup.js index cf67299f..13b641cf 100644 --- a/test/lib/setup.js +++ b/test/lib/setup.js @@ -499,6 +499,7 @@ function startController(isStartAdapter, onObjectChange, onStateChange, callback console.error('Controller is already started!'); } else { console.log('startController...'); + adapterStarted = false; var isObjectConnected; var isStatesConnected; @@ -586,6 +587,7 @@ function stopAdapter(cb) { }, 0); } } else { + adapterStarted = false; pid.on('exit', function (code, signal) { if (pid) { console.log('child process terminated due to receipt of signal ' + signal); @@ -682,4 +684,5 @@ if (typeof module !== undefined && module.parent) { module.exports.installAdapter = installAdapter; module.exports.appName = appName; module.exports.adapterName = adapterName; + module.exports.adapterStarted = adapterStarted; }