Skip to content

test: remove duplicate TestHandleHealth test#347

Open
yahyasaqban-lab wants to merge 1 commit into
volcano-sh:mainfrom
yahyasaqban-lab:fix/remove-duplicate-test
Open

test: remove duplicate TestHandleHealth test#347
yahyasaqban-lab wants to merge 1 commit into
volcano-sh:mainfrom
yahyasaqban-lab:fix/remove-duplicate-test

Conversation

@yahyasaqban-lab
Copy link
Copy Markdown

Summary

Removed duplicate test TestHandleHealth which was identical to TestHandleHealthLive — both tested the /health/live endpoint with the same logic.

Kept TestHandleHealthLive as it has a more descriptive name.

Test plan

  • Verified both tests were identical
  • Run go test ./pkg/router/...

Fixes #344

🤖 Generated with Claude Code

TestHandleHealth and TestHandleHealthLive were identical tests for
/health/live endpoint. Removed TestHandleHealth, keeping the more
descriptively named TestHandleHealthLive.

Fixes volcano-sh#344

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 17, 2026 20:01
@volcano-sh-bot
Copy link
Copy Markdown
Contributor

Keywords which can automatically close issues and at(@) or hashtag(#) mentions are not allowed in commit messages.

The list of commits with invalid commit messages:

  • a29e60f test: remove duplicate TestHandleHealth test
Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@volcano-sh-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign yaozengzeng for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes a duplicate router health-check unit test in pkg/router/handlers_test.go, keeping the more descriptive TestHandleHealthLive to avoid redundant coverage of the /health/live endpoint.

Changes:

  • Deleted TestHandleHealth, which was identical to TestHandleHealthLive.
  • Retained TestHandleHealthLive as the canonical test for /health/live.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the redundant TestHandleHealth function from pkg/router/handlers_test.go, which previously tested the /health/live endpoint. I have no feedback to provide as there were no review comments.

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.12%. Comparing base (524e55e) to head (a29e60f).
⚠️ Report is 54 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #347      +/-   ##
==========================================
+ Coverage   47.57%   49.12%   +1.55%     
==========================================
  Files          30       30              
  Lines        2819     2858      +39     
==========================================
+ Hits         1341     1404      +63     
+ Misses       1338     1301      -37     
- Partials      140      153      +13     
Flag Coverage Δ
unittests 49.12% <ø> (+1.55%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@FAUST-BENCHOU FAUST-BENCHOU left a comment

Choose a reason for hiding this comment

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

dont forget your DCO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate ut test TestHandleHealth and TestHandleHealthLive

5 participants