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 e8ac3cc commit bc8a00f
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions test/testAdapter.gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,12 @@ describe('vis', () => {
});

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

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

const pack = require(`${__dirname}/../package.json`);
const widgetsSetName = pack.name.split('.').pop();
console.log(`Stopping ${widgetsSetName}`);
await setup.stopCustomAdapter(widgetsSetName, 0);
console.log(`${widgetsSetName} topped stopped`);

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

0 comments on commit bc8a00f

Please sign in to comment.