Skip to content

static USE_MOCKS is gross and should be removed #4481

Closed

Description

@andrewjstone

During the implementation of #4332, I added a static variable that allows selecting between using mocks and not using mocks in tests. This kludge was needed because of feature unification causing the tests in sled-agent to fail when run with all other tests at the top-level. Further details can be found in this comment: #4332 (comment)

We want to eventually remove this disgrace, and the way forward is most likely to refactor the ServiceManager such that it can be tested without mocks in a manner similar to how we restructured StorageManager in #4332

Activity

  1. added
    Testing & Analysis
    Sled Agent
    cleanup
    on Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Sled AgentTesting & Analysiscleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions