mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-22 11:37:10 +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
@@ -445,8 +445,8 @@ func TestOpenAPIMemCache(t *testing.T) {
|
||||
continue
|
||||
}
|
||||
|
||||
assert.True(t, reflect.ValueOf(paths).Pointer() == reflect.ValueOf(pathsAgain).Pointer())
|
||||
assert.True(t, reflect.ValueOf(original).Pointer() == reflect.ValueOf(schemaAgain).Pointer())
|
||||
assert.Equal(t, reflect.ValueOf(paths).Pointer(), reflect.ValueOf(pathsAgain).Pointer())
|
||||
assert.Equal(t, reflect.ValueOf(original).Pointer(), reflect.ValueOf(schemaAgain).Pointer())
|
||||
|
||||
// Invalidate and try again. This time pointers should not be equal
|
||||
client.Invalidate()
|
||||
@@ -461,8 +461,8 @@ func TestOpenAPIMemCache(t *testing.T) {
|
||||
continue
|
||||
}
|
||||
|
||||
assert.True(t, reflect.ValueOf(paths).Pointer() != reflect.ValueOf(pathsAgain).Pointer())
|
||||
assert.True(t, reflect.ValueOf(original).Pointer() != reflect.ValueOf(schemaAgain).Pointer())
|
||||
assert.NotEqual(t, reflect.ValueOf(paths).Pointer(), reflect.ValueOf(pathsAgain).Pointer())
|
||||
assert.NotEqual(t, reflect.ValueOf(original).Pointer(), reflect.ValueOf(schemaAgain).Pointer())
|
||||
assert.Equal(t, original, schemaAgain)
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user