e2e-tests: wait for plugins before start

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2024-06-25 09:28:28 +02:00
parent c9a2e96634
commit c35be1d21b
+3 -1
View File
@@ -537,7 +537,9 @@ async function testBackendStart(appDir: string, ...args: string[]) {
try {
await waitFor(
() => stdout.includes('Listening on ') || filterStderr(stderr).length > 0,
() =>
stdout.includes('Plugin initialization complete') ||
filterStderr(stderr).length > 0,
);
const stderrLines = filterStderr(stderr);
if (stderrLines.length > 0) {