Skip to content

Commit

Permalink
Debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Apr 14, 2024
1 parent bc8a00f commit 47a185f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@alcalzone/release-script-plugin-iobroker": "^3.7.0",
"@alcalzone/release-script-plugin-license": "^3.7.0",
"@iobroker/legacy-testing": "^1.0.10",
"@iobroker/vis-2-widgets-testing": "^1.0.2",
"@iobroker/vis-2-widgets-testing": "^1.0.3",
"chai": "^4.4.1",
"colorette": "^2.0.20",
"gulp": "^4.0.2",
Expand Down
16 changes: 3 additions & 13 deletions test/testAdapter.gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,11 @@ describe('vis', () => {
});

after(async function () {
this.timeout(5_000);
this.timeout(8_000);
await helper.stopBrowser();
console.log('browser stopped');

// await helper.stopIoBroker();
// it is custom stop function as vis does not running, so we stop only web without vis
await setup.stopCustomAdapter('web', 0);

// wait till adapters are stopped
await new Promise(resolve => setTimeout(resolve, 1000));

await new Promise(resolve =>
setup.stopController(normalTerminated => {
console.log(`Adapter normal terminated: ${normalTerminated}`);
resolve();
}));
await helper.stopIoBroker();
console.log('ioBroker stopped');
});
});

0 comments on commit 47a185f

Please sign in to comment.