Skip to content

Allow timeout simulations in replies #169

@ghost

Description

The current implementation of the http_mock_adapter library provides a convenient way to mock server responses with the delay parameter in the MockServer reply. However, it lacks the ability to simulate connection, receive, or send timeouts, limiting its usefulness in testing scenarios that involve timeout-related behaviors.

Feature Request:
It would be great to extend the functionality of the MockServer to include the ability to simulate connection, receive, and send timeouts explicitly. This enhancement will enable users to test and verify how their code handles different timeout scenarios, leading to more comprehensive and robust test coverage.

The suggested enhancement should allow users to specify connection, receive or send delay parameters configuration, which could be used to reflect timeouts defined in the Dio instance options.

Expected Outcome:
With this enhancement, users can precisely control and simulate various timeout scenarios during testing, ensuring that their code behaves correctly in real-world networking conditions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions