Jest reports open handles when running E2E #10199
Labels
P1
Medium priority
QA: Eng
Requires specialized QA by an engineer
Team M
Issues for Squad 2
Type: Infrastructure
Engineering infrastructure & tooling
Bug Description
Note the last line above
Running with
--detectOpenHandles
found the cause related to dependencies used by Dockerode.Steps to reproduce
specs/api-cache
)Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
AbortController
by passing anabortSignal
to the call tocontainer.logs
https://github.com/apocas/dockerode/blob/7c3d517e9ca468aa1794f2b825a5b5533300c49d/lib/container.js#L1018C5-L1018C16abort()
on the controller to close the stream in all cases, replacing the previous use ofstream.destroy()
Test Coverage
QA Brief
npm run test:e2e -- specs/api-cache
You should be able to verify the additions to the logs by inspecting the
wordpress-debug-log-1
container logs in Docker, but also, the test would be expected to fail due to this triggering our assertions (working correctly)Changelog entry
The text was updated successfully, but these errors were encountered: