Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BreakDurationGenerator not being used #1852

Merged
merged 4 commits into from
Dec 12, 2023

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.

@martincostello martincostello merged commit 87d0117 into App-vNext:main Dec 12, 2023
17 checks passed
@martincostello martincostello deleted the fix-1850 branch December 12, 2023 13:26
@martincostello martincostello modified the milestones: v8.3.0, v8.2.1 Jan 4, 2024
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