Merge pull request #25388 from backstage/e2e-tests-wait-for-plugins

e2e-tests: wait for plugins before start
This commit is contained in:
Ben Lambert
2024-06-25 10:01:31 +02:00
committed by GitHub
+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) {