pull/5102/head
bunsenstraat 3 months ago
parent 279af2dcd2
commit a9a11fda8e
  1. 21
      apps/remix-ide-e2e/src/tests/remixd.test.ts

@ -440,27 +440,6 @@ async function spawnRemixd(path: string): Promise<ChildProcess> {
})
}
function killProcess(pid, signal = 'SIGKILL') {
return new Promise<void>((resolve, reject) => {
const kill = spawn('kill', ['-s', signal, pid]);
kill.on('close', (code) => {
if (code === 0) {
console.log(`Successfully killed process with PID: ${pid}`);
resolve();
} else {
console.error(`Failed to kill process with PID: ${pid}. Exit code: ${code}`);
reject(new Error(`kill process failed with code ${code}`));
}
});
kill.on('error', (err) => {
console.error(`Error spawning kill process: ${err.message}`);
reject(err);
});
});
}
function connectRemixd(browser: NightwatchBrowser, done: any) {
const browserName = browser.options.desiredCapabilities.browserName
if (browserName === 'safari' || browserName === 'internet explorer') {

Loading…
Cancel
Save