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

add tests for uber applier #16154

Merged
merged 1 commit into from
Jul 6, 2023
Merged

Conversation

CaojiamingAlan
Copy link
Contributor

@CaojiamingAlan CaojiamingAlan commented Jun 28, 2023

#16036
Add tests for uber applier.
Test cases involve building correct applier chains when alarms are on and off.

},
}}},
expectError: nil,
},
Copy link
Member

Choose a reason for hiding this comment

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

Could you please add an conditional delete in the Txn test case? It was the motivation of PR #13435

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Lemme check the background first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can add a test case, but tbh I don't think that's the part of function I am trying to cover here......a better place would be the unit test of the server/storage package. However that package has no test coverage either. So nevermind, I will add it.

Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
Copy link
Member

@chaochn47 chaochn47 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @CaojiamingAlan !

Copy link
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks @CaojiamingAlan.

@ahrtr ahrtr merged commit f4444e8 into etcd-io:main Jul 6, 2023
27 checks passed
@CaojiamingAlan CaojiamingAlan deleted the uber_applier_test branch July 17, 2023 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants