-
Notifications
You must be signed in to change notification settings - Fork 260
refactor: Match CNI go tests #2092
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
Conversation
7e6699d to
bcd100a
Compare
paulyufan2
left a comment
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.
lgtm
| restConfig := k8sutils.MustGetRestConfig(t) | ||
|
|
||
| t.Log("Create Clientset") | ||
| clientset, _ := k8sutils.MustGetClientset() |
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 are we ignoring the error ?
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.
Good question! Going to change this.
| } | ||
| if len(pods.Items) <= 1 { | ||
| require.NoError(t, errors.New("Less than 2 pods on node")) | ||
| t.Fatal("Less than 2 pods on node") |
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.
Good to have node name as well ?
980f99c to
34fcb70
Compare
34fcb70 to
48a7a66
Compare
Reason for Change:
Did not match the design of other go tests, slowing down development.
Issue Fixed:
Requirements:
Notes: