Skip to content

test: await did-create-window assertion in child close test#51518

Merged
ckerr merged 1 commit into
41-x-yfrom
trop/41-x-y-bp-test-await-did-create-window-assertion-in-child-close-test-1778075230349
May 6, 2026
Merged

test: await did-create-window assertion in child close test#51518
ckerr merged 1 commit into
41-x-yfrom
trop/41-x-y-bp-test-await-did-create-window-assertion-in-child-close-test-1778075230349

Conversation

@trop
Copy link
Copy Markdown
Contributor

@trop trop Bot commented May 6, 2026

Backport of #51515

See that PR for details.

Notes: none.

The async handler inside .on('did-create-window') was never awaited
by the test function, so Mocha marked the test as passed before the
handler ran. Fix this by awaiting the event.

Co-authored-by: Charles Kerr <charles@charleskerr.com>
@trop trop Bot requested a review from ckerr May 6, 2026 13:47
@trop trop Bot added 41-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels May 6, 2026
@ckerr ckerr merged commit 795f7d6 into 41-x-y May 6, 2026
74 checks passed
@ckerr ckerr deleted the trop/41-x-y-bp-test-await-did-create-window-assertion-in-child-close-test-1778075230349 branch May 6, 2026 17:07
@release-clerk
Copy link
Copy Markdown

release-clerk Bot commented May 6, 2026

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

41-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant