update testAdapter.js
This commit is contained in:
+2
-2
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user