dsanders11

#53036: test: enforce awaiting promise returning helpers

Merged
Created: Aug 19, 2026, 8:26:24 PM
Merged: Aug 20, 2026, 9:27:22 AM
6 comments
Target: main

Description of Change

There are a couple dozen places where we aren't awaiting promises in tests, which can lead to flaky behavior or tests not checking what they intend to test. The failure to await waitUntil is particularly problematic, since its unhandled rejection will currently be silently swallowed (may address this in a follow up PR).

Oxlint has a similar rule for this (typescript/no-floating-promises) but it requires type aware linting (which we don't have enabled currently) and applies to all promises. Opting to fix the immediate problem for now and we can adopt typescript/no-floating-promises in the future if we turn on type aware linting.

Checklist

Release Notes

Notes: none

Backports

42-x-y
Pending
Waiting for a manual backport
43-x-y
In-flight
PR Number
#
Waiting to be merged
44-x-y
Merged
PR Number
#53043
Merged At
Aug 20, 2026, 4:36:14 PM
Released In
Not yet
Release Date
Not yet

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