-
Notifications
You must be signed in to change notification settings - Fork 244
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
Fixes watch unit #2367
Fixes watch unit #2367
Conversation
b60ed00
to
20e130a
Compare
20e130a
to
015fde3
Compare
015fde3
to
31488a5
Compare
31488a5
to
aca19fe
Compare
5032dc8
to
fe267b4
Compare
99b71ad
to
ad82fc0
Compare
As of now it looks good to me. Recently @dharmit and @girishramnani has spent good amount of time on researching UTs cases. So i would recommend atleast anyone of them to have a look into it. |
/kind bug What does does this PR do / why we need it: Fixes the watch unit test and adds more Which issue(s) this PR fixes: Fixes redhat-developer#2365 How to test changes / Special notes to the reviewer: run make test and check if it passes Signed-off-by: mik-dass <mrinald7@gmail.com>
ad82fc0
to
c5227f2
Compare
fmt.Printf("some of the push parameters are different, wanted: %v, got: %v", mockPush, []string{ | ||
componentName, applicationName, "isPushForce:" + strconv.FormatBool(isPushForce), "show:" + strconv.FormatBool(show), | ||
}) | ||
os.Exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this return error, rather than calling Exit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are ignoring the error later on in the code, so the test passes if I don't exit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went through the code, honestly, no changes I propose.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cdrage 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 |
/lgtm |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
What kind of PR is this?
/kind bug
What does does this PR do / why we need it:
Fixes the watch unit test and adds more
Which issue(s) this PR fixes:
Fixes #2365
How to test changes / Special notes to the reviewer:
run
make test
and check if it passes