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

edgecontroller: improve test coverage for edgecontroller/manager/location.go #2460

Merged
merged 1 commit into from
Dec 25, 2020
Merged

edgecontroller: improve test coverage for edgecontroller/manager/location.go #2460

merged 1 commit into from
Dec 25, 2020

Conversation

yf4n
Copy link
Member

@yf4n yf4n commented Dec 24, 2020

What type of PR is this?

What this PR does / why we need it:
imporove coverage of edgecontroller/manager/location.go

Which issue(s) this PR fixes:

Fixes #2239

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@kubeedge-bot kubeedge-bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Dec 24, 2020
Copy link
Member

@fisherxu fisherxu left a comment

Choose a reason for hiding this comment

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

Thanks for the PR

if got, exist := test.lc.GetNodeStatus(test.nodeName); !reflect.DeepEqual(got, test.want) || !reflect.DeepEqual(exist, test.exist) {
t.Errorf(
"Manager.TestGetNodeStatus() case failed: gotStatus = %v,gotExist = %v, wantStatus = %v. wantExist: %v",
got, exist, test.want, test.exist,
Copy link
Member

Choose a reason for hiding this comment

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

Delete the extra line breaks here :)

Copy link
Member Author

Choose a reason for hiding this comment

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

deleted

@fisherxu
Copy link
Member

/lgtm
/approve

@kubeedge-bot kubeedge-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 25, 2020
@kubeedge-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fisherxu

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

The pull request process is described here

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

@kubeedge-bot kubeedge-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 25, 2020
@kubeedge-bot kubeedge-bot merged commit 1cccaf8 into kubeedge:master Dec 25, 2020
@yf4n yf4n deleted the improve-test-coverage-edgecontroller-manager branch December 30, 2020 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cloud/pkg/edgecontroller/manager: improve the test coverage
3 participants