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

Test: Replace t.error/fatal with assert/request in [/raftpb] #194

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

MrDXY
Copy link
Contributor

@MrDXY MrDXY commented Apr 9, 2024

Refactor: Replacing t.Error/t.Fatal with assert/require

This commit tries to eliminate boilerplate code in the testing suite by replacing occurrences
of t.Error and t.Fatal with assertions from the assert and require packages.

Changes Made:

  • Replaced instances of t.Error with assert
  • Replaced instances of t.Fatal with require

Affected Files:

  • [/raftpb/confstate_test.go]
  • [/raftpb/raft_test.go]

Part of: #146

@MrDXY MrDXY mentioned this pull request Apr 9, 2024
6 tasks
Copy link
Member

@ahrtr ahrtr 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

@ahrtr
Copy link
Member

ahrtr commented Apr 11, 2024

@pav-kv can you take a look so that we can merge this PR? thx

@ahrtr ahrtr merged commit 3a6e6ae into etcd-io:main Apr 11, 2024
9 checks passed
@MrDXY MrDXY deleted the replace-test-errors-with-assert-raftpb branch April 11, 2024 11:10
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