pull/3262/head^2
filip mertens 2 years ago committed by Aniket
parent 41c0562e20
commit a3ba05ae38
  1. 3
      apps/remix-ide-e2e/src/tests/remixd.test.ts

@ -313,7 +313,7 @@ function testImportFromRemixd(browser: NightwatchBrowser, callback: VoidFunction
async function spawnRemixd(path: string): Promise<ChildProcess> { async function spawnRemixd(path: string): Promise<ChildProcess> {
const remixd = spawn('yarn run remixd', [`-s ${path}`], { cwd: process.cwd(), shell: true, detached: true }) const remixd = spawn('yarn run remixd', [`-s ${path}`], { cwd: process.cwd(), shell: true, detached: true })
return new Promise((resolve) => { return new Promise((resolve, reject) => {
remixd.stdout.on('data', function (data) { remixd.stdout.on('data', function (data) {
console.log('stdout: ' + data.toString()) console.log('stdout: ' + data.toString())
if( if(
@ -326,6 +326,7 @@ async function spawnRemixd(path: string): Promise<ChildProcess> {
}) })
remixd.stderr.on('err', function (data) { remixd.stderr.on('err', function (data) {
console.log('err: ' + data.toString()) console.log('err: ' + data.toString())
reject(data.toString())
}) })
}) })
} }

Loading…
Cancel
Save