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

Support HeartbeatConsistencyChecks in Clone() #2658

Merged
merged 7 commits into from
Feb 27, 2024
Merged

Conversation

mgravell
Copy link
Collaborator

@mgravell mgravell commented Feb 27, 2024

release 2.7.23 added a ConfigurationOptions.HeartbeatConsistencyChecks option, but that option is not represented in Clone(); fix that

@NickCraver
Copy link
Collaborator

Sooooooo I think I missed this because interval isn't in there either…

@NickCraver
Copy link
Collaborator

Thoughts on some reflection-based test for clone checking to prevent future misses?

@mgravell
Copy link
Collaborator Author

Sooooooo I think I missed this because interval isn't in there either…

added; I have no great ideas on the reflection thing - feel free to suggest

@mgravell
Copy link
Collaborator Author

maybe just a count of the fields on ConfigurationOptions with a known expected value:

Assert.Equals(43, fields.Length); // if this fails, check Clone() has been updated

@NickCraver
Copy link
Collaborator

+1 I like it - simple and effective we can get fancier if ever justified. Do you mind adding in this PR please? If slammed I can follow-up later in day too.

@mgravell
Copy link
Collaborator Author

@NickCraver already working on it

@mgravell
Copy link
Collaborator Author

@NickCraver see 2a624a2

Copy link
Collaborator

@NickCraver NickCraver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good 👍

@mgravell mgravell merged commit a517561 into main Feb 27, 2024
8 checks passed
@mgravell mgravell deleted the heartbeat-clone branch February 27, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants