Skip to content

ConnectivityInterceptor: inject ConnectivityService for testability #65

@cevheri

Description

@cevheri

Problem

ConnectivityInterceptor at connectivity_interceptor.dart:24 uses the ConnectivityService singleton directly, making it impossible to test the offline rejection branch deterministically.

Fix

Accept a ConnectivityService (or status provider interface) via constructor with a default of ConnectivityService.instance, so tests can supply a fake.

Source

Copilot review on PR #59

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