electron/spec/fixtures/api
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
..
app-path
command-line
context-bridge feat: expose frame & move properties to console-message event object (#43617) 2024-10-18 16:07:06 -04:00
cookie-app
default-menu refactor: use optional catch binding (#39232) 2023-07-27 10:53:45 -04:00
electron-main-module test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
exit-closes-all-windows-app
first-party-sets
ipc-main-listeners test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
locale-check feat: add app.getPreferredSystemLanguages() API (#36035) 2022-11-09 10:50:43 -05:00
mixed-sandbox-app build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
net-log test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
preload-realm feat: service worker preload scripts for improved extensions support … (#45408) 2025-02-05 14:18:24 -05:00
quit-app
relaunch build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
safe-storage build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
service-workers feat: service worker preload scripts for improved extensions support … (#45408) 2025-02-05 14:18:24 -05:00
shared-dictionary feat: Add shared dictionary management APIs (#44750) 2024-12-04 12:25:11 -05:00
shared-worker
singleton chore: cleanup unusued variables + enable linting (#38898) 2023-06-26 02:51:54 -07:00
singleton-data build: update some build dependencies (#43882) 2024-09-26 00:12:11 -07:00
singleton-userdata build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
test-menu-null test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
test-menu-visibility test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
utility-process fix: possible timing issue in utility-process spec (#45727) 2025-02-20 08:55:02 +01:00
window-all-closed
beforeunload-empty-string.html test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
beforeunload-false-prevent3.html test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
beforeunload-false.html test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
beforeunload-undefined.html test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
blank.html
close.html refactor: use node scheme imports in spec (#38487) 2023-06-15 10:42:27 -04:00
custom-protocol-shutdown.js test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
did-fail-load-iframe.html
fork-with-node-options.js build: update some build dependencies (#43882) 2024-09-26 00:12:11 -07:00
frame-subscriber.html chore: update line endings on HTML files (#37755) 2023-03-29 15:02:13 -04:00
globals.html
gpu-info.js
isolated-fetch-preload.js
isolated-preload.js
isolated-process.js
isolated.html
loaded-from-dataurl.js
localstorage-and-indexeddb.html feat: Options parameter for Session.clearData API (#41355) 2024-04-01 12:09:01 -04:00
localstorage.html
native-window-open-blank.html
native-window-open-child.html
native-window-open-cross-origin.html
native-window-open-file.html
native-window-open-iframe.html
native-window-open-isolated-preload.js
native-window-open-isolated.html
native-window-open-native-addon.html test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
native-window-open-no-allowpopups.html
native-window-open-noopener.html
new-window-preload.js chore: cleanup unusued variables + enable linting (#38898) 2023-06-26 02:51:54 -07:00
new-window-webview-preload.js
new-window-webview.html
new-window.html
no-leak.html
offscreen-rendering.html chore: update line endings on HTML files (#37755) 2023-03-29 15:02:13 -04:00
pdf-reader.mjs build: also lint mjs files (#44581) 2024-11-06 18:46:09 -05:00
picture-in-picture.html
preload.html
print-to-pdf-large.html test: more robust PDF specs (#35979) 2022-10-12 10:15:49 -04:00
print-to-pdf-small.html test: more robust PDF specs (#35979) 2022-10-12 10:15:49 -04:00
sandbox.html test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
send-sync-message.html test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
unhandled-rejection-handled.js fix: don't double-log unhandled rejections (#37464) 2023-03-06 11:04:43 +01:00
unhandled-rejection.js fix: don't double-log unhandled rejections (#37464) 2023-03-06 11:04:43 +01:00
unload.html refactor: use node scheme imports in spec (#38487) 2023-06-15 10:42:27 -04:00
webrequest.html test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
window-open-location-change.html
window-open-location-final.html
window-open-location-open.html
window-open-preload.js test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00