pull/5370/head
bunsenstraat 3 months ago
parent 84f102091b
commit 7537b70f53
  1. 29
      apps/remix-ide-e2e/src/tests/remixd.test.ts

@ -55,26 +55,27 @@ module.exports = {
before: function (browser, done) { before: function (browser, done) {
init(browser, done) init(browser, done)
}, },
afterEach: async function (browser, done) { afterEach: async function (browser) {
if (browser.currentTest.results.failed > 0) { if (browser.currentTest.results.failed > 0) {
// Perform actions if the test case failed
console.log('Test failed, disconnecting services...'); console.log('Test failed, disconnecting services...');
console.log('remixd', remixd.pid) console.log('remixd', remixd.pid);
try {
await killProcess(remixd.pid);
console.log('Service disconnected successfully.');
} catch (error) {
console.error('Failed to disconnect service:', error);
}
} }
done();
}, },
after: function (browser) {
console.log('after')
browser.perform(async (done) => {
console.log('remixd', remixd.pid)
try {
await killProcess(remixd.pid)
}catch(e){
after: async function (browser) {
try {
await killProcess(remixd.pid);
console.log('Service disconnected successfully.');
} catch (error) {
console.error('Failed to disconnect service:', error);
} }
done()
browser.end()
})
}, },
'@sources': function () { '@sources': function () {

Loading…
Cancel
Save