diff --git a/apps/remix-ide-e2e/src/tests/remixd.test.ts b/apps/remix-ide-e2e/src/tests/remixd.test.ts index 44b713a4c7..9a2fa084cf 100644 --- a/apps/remix-ide-e2e/src/tests/remixd.test.ts +++ b/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 { 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) { console.log('stdout: ' + data.toString()) if( @@ -326,6 +326,7 @@ async function spawnRemixd(path: string): Promise { }) remixd.stderr.on('err', function (data) { console.log('err: ' + data.toString()) + reject(data.toString()) }) }) }