mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-24 20:47:56 +00:00
fix: enable compares rule from testifylint in module
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> Kubernetes-commit: 407d74fb6a563951045287338a6c64a79fcad8ec
This commit is contained in:
committed by
Kubernetes Publisher
parent
8887e59dfb
commit
290f054d9b
@@ -2425,9 +2425,9 @@ func TestAggregatedServerGroupsAndResources(t *testing.T) {
|
||||
"%s: Expected GVKs (%s), got (%s)", test.name, expectedGroupNames.List(), actualGroupNames.List())
|
||||
// If the core V1 group is returned from /api, it should be the first group.
|
||||
if expectedGroupNames.Has("") {
|
||||
assert.True(t, len(apiGroups) > 0)
|
||||
assert.NotEmpty(t, apiGroups)
|
||||
actualFirstGroup := apiGroups[0]
|
||||
assert.True(t, len(actualFirstGroup.Versions) > 0)
|
||||
assert.NotEmpty(t, actualFirstGroup.Versions)
|
||||
actualFirstGroupVersion := actualFirstGroup.Versions[0].GroupVersion
|
||||
assert.Equal(t, "v1", actualFirstGroupVersion)
|
||||
}
|
||||
|
Reference in New Issue
Block a user