static USE_MOCKS
is gross and should be removed
#4481
Labels
cleanup
Code cleanliness
Sled Agent
Related to the Per-Sled Configuration and Management
Testing & Analysis
Tests & Analyzers
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 #4332The text was updated successfully, but these errors were encountered: