-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update test for checking last pinned timestamp #5830
Conversation
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.
@taragu: 0 warnings.
In response to this:
/lint
Proposed Changes
This PR updates the test
TestReconcileTargetRevisions
. Currently, the test is only checking if an err is returned (there's no verification on the last pinned timestamp as the TODO indicates). Also, the two test cases are actually the same, so this PR reduces the test down to one test case.Release Note
NONE
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.
The following is the coverage report on the affected files.
|
/test pull-knative-serving-go-coverage |
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.
Looks like coverage dropped :-)
This PR is ready for another look. |
@vagababov would you please take a look when you get a chance? |
t.Fatal("The last pinned timestamp is not updated") | ||
} | ||
|
||
// Now, try reconciling target revisions for a revision that does not exist. No err should be returned |
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.
Why? Shouldn't this fail, since there is no revision to reconcile?
132e390
to
41a4196
Compare
b6029fc
to
8f2fe5c
Compare
The following jobs failed:
Automatically retrying due to test flakiness... |
/retest |
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.
Nit.
/lgtm
from my side
/assign @dgerd
for approval.
} | ||
} | ||
|
||
func TestReconcileTargetDoNotExistRevision(t *testing.T) { |
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.
func TestReconcileTargetDoNotExistRevision(t *testing.T) { | |
func TestReconcileRevisionTargetDoesNotExist(t *testing.T) { |
This PR updates the tests for checking last pinned timestamp for both valid revisions and invalid revisions.
@dgerd would you take a look when you get a chance? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dgerd, taragu 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 |
/lint
Proposed Changes
This PR updates the test
TestReconcileTargetRevisions
. Currently, the test is only checking if an err is returned (there's no verification on the last pinned timestamp as the TODO indicates).Release Note