ckerr

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

Merged
Created: May 5, 2026, 7:53:45 PM
Merged: May 6, 2026, 6:47:00 AM
4 comments
Target: main

Description of Change

Fix a test that didn't wait for events to fire before ending the test.

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.

Checklist

Release Notes

Notes: none.

Backports

40-x-y
Pending
Waiting for a manual backport
41-x-y
Merged
PR Number
#51518
Merged At
May 6, 2026, 10:07:00 AM
Released In
v41.5.1
Release Date
May 8, 2026, 9:00:22 AM
42-x-y
Merged
PR Number
#51519
Merged At
May 6, 2026, 10:06:57 AM
Released In
v42.0.1
Release Date
May 8, 2026, 9:00:23 AM

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron