update testAdapter.js

This commit is contained in:
Ingo Fischer
2022-01-29 15:27:39 +01:00
parent f1376e5e5b
commit 5d8816f464
+2 -2
View File
@@ -77,7 +77,7 @@ describe('Test ' + adapterShortName + ' adapter', function() {
before('Test ' + adapterShortName + ' adapter: Start js-controller', function (_done) { before('Test ' + adapterShortName + ' adapter: Start js-controller', function (_done) {
this.timeout(600000); // because of first install from npm this.timeout(600000); // because of first install from npm
setup.setupController(function () { setup.setupController(async function () {
var config = setup.getAdapterConfig(); var config = setup.getAdapterConfig();
// enable adapter // enable adapter
config.common.enabled = true; config.common.enabled = true;
@@ -85,7 +85,7 @@ describe('Test ' + adapterShortName + ' adapter', function() {
//config.native.dbtype = 'sqlite'; //config.native.dbtype = 'sqlite';
setup.setAdapterConfig(config.common, config.native); await setup.setAdapterConfig(config.common, config.native);
setup.startController(true, function(id, obj) {}, function (id, state) { setup.startController(true, function(id, obj) {}, function (id, state) {
if (onStateChanged) onStateChanged(id, state); if (onStateChanged) onStateChanged(id, state);