Skip to content

Tests on Windows leaving behind orphaned processes #277

Open
@jonahgraham

Description

@jonahgraham

At the end of the GitHub actions run there are a handful of orphaned processes left when running on Windows, e.g from this run:

Cleaning up orphan processes
Terminate orphan process: pid (1176) (gdbserver)
Terminate orphan process: pid (4968) (empty)

The tests should be cleaning up better after themselves. I think the ones that are left behind are the tests that are checking error conditions, but it is pretty hard to tell just from the log which they are.

The title says "Windows", but my guess is that on Linux they simply aren't orphaned because when mocha exits it is fully terminating all child processes on Linux and not doing it on Windows. But ideally the test itself should cleanup after itself and not wait until the mocha exits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions