Skip to content

Conversation

martincostello
Copy link
Member

Pull Request

The issue or feature being addressed

Resolves #1850.

Details on the issue fix or feature implementation

  • Always pass BreakDurationGenerator to the controller.
  • Fix assertion so if BreakDurationGenerator isn't configured, the test fails.
  • Make the breakDurationGenerator parameter required so that no code forgets to pass it through.
  • Add an integration test for when BreakDurationGenerator is specified to guard against the issue reported by BreakDurationGenerator not passed to CircuitStateController #1850.
  • Running dotnet test in the root of the repo would generate an error from trying to run tests in the Snippets project. As this project doesn't actually have any tests in it, mark it as not a test project.

- Always pass `BreakDurationGenerator` to the controller.
- Fix assertion so if `BreakDurationGenerator` isn't configured, the test fails.
Make the `breakDurationGenerator` parameter required so that no code forgets to pass it through.
Add an integration test for when `BreakDurationGenerator` is specified to guard against the issue reported by App-vNext#1850.
Running `dotnet test` in the root of the repo would generate an error from trying to run tests in the Snippets project. As this project doesn't actually have any tests in it, mark it as not a test project.
@martincostello martincostello added this to the v8.3.0 milestone Dec 12, 2023
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9e42b0c) 84.58% compared to head (32698ff) 84.58%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1852   +/-   ##
=======================================
  Coverage   84.58%   84.58%           
=======================================
  Files         308      308           
  Lines        6798     6799    +1     
  Branches     1049     1049           
=======================================
+ Hits         5750     5751    +1     
  Misses        839      839           
  Partials      209      209           
Flag Coverage Δ
linux 84.58% <100.00%> (+<0.01%) ⬆️
macos 84.58% <100.00%> (+<0.01%) ⬆️
windows 84.58% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BreakDurationGenerator not passed to CircuitStateController
2 participants