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

Avoid using context.TODO() in unit tests #360

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

gauravgahlot
Copy link
Contributor

Signed-off-by: Gaurav Gahlot [email protected]

Description

It is not a good practice to use a never-ending context in unit tests. It is suggested that a unit test should always have a timeout.

How Has This Been Tested?

make test

How are existing users impacted? What migration steps/scripts do we need?

No impact.

Signed-off-by: Gaurav Gahlot <[email protected]>
@gauravgahlot gauravgahlot self-assigned this Nov 9, 2020
@gauravgahlot gauravgahlot added the ready-to-merge Signal to Mergify to merge the PR. label Nov 9, 2020
@codecov
Copy link

codecov bot commented Nov 9, 2020

Codecov Report

Merging #360 (db26bdc) into master (384fe30) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #360   +/-   ##
=======================================
  Coverage   24.74%   24.74%           
=======================================
  Files          14       14           
  Lines        1277     1277           
=======================================
  Hits          316      316           
  Misses        940      940           
  Partials       21       21           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 384fe30...db26bdc. Read the comment docs.

@Cbkhare Cbkhare self-requested a review November 9, 2020 12:23
@mergify mergify bot merged commit 0e8e573 into tinkerbell:master Nov 9, 2020
@gauravgahlot gauravgahlot deleted the context-fix branch November 9, 2020 12:44
@mmlb mmlb removed the ready-to-merge Signal to Mergify to merge the PR. label Jan 25, 2021
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