Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Apr 21, 2024
2 parents a07bf0e + 3e4c316 commit c9ce950
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions test/testAdapter.gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let gPage;
let gBrowser;

describe('vis', () => {
before(async function (){
before(async function () {
this.timeout(180_000);

// install js-controller, web and vis-2
Expand Down Expand Up @@ -55,12 +55,20 @@ describe('vis', () => {
await runtimePage.close();
});

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

await helper.stopIoBroker();
console.log('ioBroker stopped');
helper.stopBrowser()
.then(() => {
console.log('browser stopped');
try {
return setup.stopCustomAdapter('web', 0);
} catch (e) {
console.error(`Cannot stop ioBroker: ${e}`);
}
})
.then(() => {
console.log('ioBroker stopped');
done();
});
});
});

0 comments on commit c9ce950

Please sign in to comment.