Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Rspec multiple runs because of exit when testing forked process #2058

Closed
@SephVelut

Description

@SephVelut

I'm having difficulties testing code that happens to fork processes.

# code under test
exit if fork
Process.setsid
exit if fork

Will cause rspec to run more than once because of the Kernel#exit. Using exit! changes this behavior. Any proposed rspec solutions I'm missing?

Related #1164 & #977

I have rspec installed with bundler. Running it via rspec command. Fresh install, no changed to spec_helper.

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