Skip to content

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

@mgravell mgravell requested a review from NickCraver February 27, 2024 12:43
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
@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.

4 participants