Thanks to visit codestin.com
Credit goes to github.com

Skip to content

On Windows, panics with "server should be listening" when %SystemRoot% is unset #217

@acarl005

Description

@acarl005

To be honest, I'm not sure if there's anything actionable in this crate. I was starting a sub-process, a Rust executable which calls mockito, and I started it without any value for the SystemRoot env var. This caused a cryptic panic server should be listening coming from this crate. Specifically, TcpListener::bind was failing with this error message:

ERROR [mockito::server] The requested service provider could not be loaded or initialized. (os error 10106)

This was totally user error. I'm not sure if there's an assertion to add which makes sense, or maybe documenting this dependency? Feel free to close if you don't think so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions