From 4c86ee8d0e58798cbfc577813fc6a8cf22e7c608 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 22 Dec 2022 11:44:52 +0100 Subject: [PATCH] remixd --- apps/remix-ide-e2e/src/tests/remixd.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/remixd.test.ts b/apps/remix-ide-e2e/src/tests/remixd.test.ts index dc5adb7878..b171dd3555 100644 --- a/apps/remix-ide-e2e/src/tests/remixd.test.ts +++ b/apps/remix-ide-e2e/src/tests/remixd.test.ts @@ -316,13 +316,16 @@ async function spawnRemixd(path: string) { return new Promise((resolve) => { remixd.stdout.on('data', function (data) { console.log('stdout: ' + data.toString()) + if( + data.toString().includes('foundry is listening') + || data.toString().includes('There is already a client running') + ) { + resolve(true) + } }) remixd.stderr.on('err', function (data) { console.log('err: ' + data.toString()) }) - remixd.on("exit", (code) => { - resolve(code); - }); }) }