chore: finally got it working now right?

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-10-29 18:23:41 +02:00
parent 08724f0bc7
commit 5b43ae3b5e
+2 -2
View File
@@ -377,7 +377,7 @@ async function testAppServe(pluginName: string, appDir: string) {
if (attempts >= 20) {
throw new Error(`App serve test failed, ${error}`);
}
console.log(`App serve failed, trying again, ${error}`);
print(`App serve failed, trying again, ${error}`);
await new Promise(resolve => setTimeout(resolve, 1000));
}
}
@@ -463,7 +463,7 @@ async function testBackendStart(appDir: string, isPostgres: boolean) {
await waitFor(
() => stdout.includes('Listening on ') || stdErrorHasErrors(stderr),
);
if (stderr !== '') {
if (stdErrorHasErrors(stderr)) {
print(`Expected stderr to be clean, got ${stderr}`);
// Skipping the whole block
throw new Error(stderr);