There was an error while loading. Please reload this page.
1 parent 5fd3d69 commit 47cdebeCopy full SHA for 47cdebe
1 file changed
tests/test_utils.tsx
@@ -148,16 +148,25 @@ export async function withChildProcessServer(
148
throw new Error(`Could not find server address`);
149
}
150
151
+ let failed = false;
152
try {
153
await fn(address);
154
} catch (err) {
155
// deno-lint-ignore no-console
156
console.log(output);
157
+ failed = true;
158
throw err;
159
} finally {
160
aborter.abort();
161
await cp.status;
- for await (const _ of lines) { /* noop */ }
162
+ for await (const line of lines) {
163
+ output.push(line);
164
+ }
165
+
166
+ if (failed) {
167
+ // deno-lint-ignore no-console
168
+ console.log(output);
169
170
171
172
0 commit comments