Commit b468cb6
committed
fix: remove captureOutput from tests that expect errors
The log-displayer tests that expect errors were wrapping displayer.display()
in captureOutput, which was causing the tests to hang. Since these tests are
only checking error messages and not stdout/stderr output, we can remove the
captureOutput wrapper and catch the errors directly in try-catch blocks.1 parent 65c39cb commit b468cb6
1 file changed
Lines changed: 8 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | 356 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
363 | 360 | | |
364 | | - | |
| 361 | + | |
365 | 362 | | |
366 | 363 | | |
367 | 364 | | |
368 | 365 | | |
369 | 366 | | |
370 | | - | |
371 | | - | |
372 | 367 | | |
373 | 368 | | |
374 | 369 | | |
| |||
388 | 383 | | |
389 | 384 | | |
390 | 385 | | |
391 | | - | |
392 | 386 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
398 | 390 | | |
399 | | - | |
| 391 | + | |
400 | 392 | | |
401 | 393 | | |
402 | 394 | | |
403 | 395 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | 396 | | |
408 | 397 | | |
409 | 398 | | |
0 commit comments