Add more logs, handle verdaccio not starting better

This commit is contained in:
Sander Declerck 2025-10-14 13:44:49 +02:00
parent c50eac977b
commit 37585e8073
No known key found for this signature in database

View file

@ -72,6 +72,7 @@ describe("E2E: Safe chain proxy", () => {
); );
if (curlOutput.includes("200 OK")) { if (curlOutput.includes("200 OK")) {
verdaccioStarted = true; verdaccioStarted = true;
console.log("Verdaccio started, after " + i * 500 + "ms");
break; break;
} }
} catch { } catch {
@ -79,10 +80,10 @@ describe("E2E: Safe chain proxy", () => {
} }
} }
if (!verdaccioStarted) { if (!verdaccioStarted) {
throw new Error("Verdaccio did not start in time"); assert.fail("Verdaccio did not start in time");
} }
const shell = await container.openShell("bash"); const shell = await container.openShell("zsh");
const result = await shell.runCommand( const result = await shell.runCommand(
"npm --registry http://localhost:4873 install react" "npm --registry http://localhost:4873 install react"
); );