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 [/tracker/inflights_test.go] #190

Merged
merged 1 commit into from
Apr 6, 2024

Conversation

MrDXY
Copy link
Contributor

@MrDXY MrDXY commented Apr 1, 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:

  • [/tracker/inflights_test.go]

Part of: #146

@MrDXY MrDXY mentioned this pull request Apr 1, 2024
6 tasks
tracker/inflights_test.go Outdated Show resolved Hide resolved
@MrDXY MrDXY force-pushed the replace-test-errors-with-assert-tracker branch from b2403c5 to a6f8e3e Compare April 4, 2024 00:56
@ahrtr
Copy link
Member

ahrtr commented Apr 4, 2024

We need to bump the go version to fix the workflow failure (CVE). FYI. etcd-io/etcd#17703

@MrDXY
Copy link
Contributor Author

MrDXY commented Apr 4, 2024

I can work on bumping the go version.

@ahrtr
Copy link
Member

ahrtr commented Apr 4, 2024

I can work on bumping the go version.

Sure, feel free to raise a PR.

@MrDXY MrDXY force-pushed the replace-test-errors-with-assert-tracker branch from a6f8e3e to ca660d6 Compare April 6, 2024 00:07
@MrDXY
Copy link
Contributor Author

MrDXY commented Apr 6, 2024

Hi, folks, since the go version has been bumped, the git workflow should now be functioning smoothly. The PR is all set for a second review. whenever you find a moment, please take a look. Thanks!

@ahrtr ahrtr merged commit f7321f1 into etcd-io:main Apr 6, 2024
10 checks passed
@MrDXY MrDXY deleted the replace-test-errors-with-assert-tracker branch April 6, 2024 13:45
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