From e33e4f825317dcd97a9aac9c70e3cbc10c4b798c Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 22 Dec 2022 11:59:30 +0100 Subject: [PATCH] reject --- apps/remix-ide-e2e/src/tests/remixd.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) }) }) }