electron/spec/fixtures
trop[bot] f29559e46c
fix: possible timing issue in utility-process spec (#45727)
This fixture has been calling process.exit() immediately after writing
to stdout and stderr, which the Node.js docs say is risky behavior:

> Calling process.exit() will force the process to exit as quickly as
> possible even if there are still asynchronous operations pending that
> have not yet completed fully, including I/O operations to
> process.stdout and process.stderr.

This fixture's been around for years without problems (AFAIK).
The writes are very small ('hello\n' and 'world') and finish quickly.
But recently I've been testing on a very slow CI machine. There, I see
this spec flaking when it expects stderr to be 'world' but it gets ''.

This PR changes the fixture to wait for stdout & stderr to flush
before calling process.exit().

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2025-02-20 08:55:02 +01:00
..
api fix: possible timing issue in utility-process spec (#45727) 2025-02-20 08:55:02 +01:00
apps build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
assets test: add tests dbus notification images (#43938) 2024-09-25 13:17:27 +02:00
auto-update build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
certificates fix spec 2016-04-18 22:57:37 +05:30
chromium test: fix visibility-state-spec.ts flaky test (#44037) 2024-10-11 10:00:22 -04:00
crash-cases fix: segfault when moving WebContentsView between BrowserWindows (#44599) 2024-11-11 18:44:13 -05:00
devtools-extensions test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
esm build: also lint mjs files (#44581) 2024-11-06 18:46:09 -05:00
extensions chore: bump chromium to 131.0.6734.0 (main) (#43769) 2024-09-25 06:19:39 -05:00
file-system feat: implement File System API support (#41419) 2024-04-10 22:06:47 +02:00
module build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
native-addon build: reland bump Node.js to v22.9.0 (#44597) 2024-11-13 15:34:30 +01:00
pages build: use github actions for windows (#44136) 2024-12-12 11:51:24 -05:00
recursive-asar fix: support recursive readdir in Asar files (#41582) 2024-03-19 11:10:14 +01:00
release-notes/cache build: add support for fetching github token from sudowoodo (#43808) 2024-09-23 09:39:54 -07:00
snapshot-items-available ci: cleanup up test app directories (#25145) 2020-08-31 14:07:12 -04:00
sub-frames feat: add WebFrameMain detached property (#43473) 2024-10-11 18:33:53 -04:00
test.asar build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
webview/fullscreen test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
workers fix: fetch-dependent interfaces in Web Workers (#42579) 2024-06-20 11:01:50 -04:00
blank.html test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
blank.png test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
cat-spin.mp4 fix: don't emit did-fail-load for MediaDocuments (#37824) 2023-04-06 10:23:34 +02:00
cat.pdf test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
dogs-running.txt test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
hello.txt feat: net.fetch() supports custom protocols (#36606) 2023-03-02 15:47:45 -08:00
no-proprietary-codecs.js build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
preload-expose-ipc.js test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
testsnap.js chore: cleanup unusued variables + enable linting (#38898) 2023-06-26 02:51:54 -07:00
video-source-image.webp feat: add {stream} opt to custom protocol registry to configure media player (#22955) 2020-06-08 09:49:36 -07:00