mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
divide statically known typer from dynamically derive restmapper
This commit is contained in:
@@ -339,7 +339,7 @@ func TestValidate(t *testing.T) {
|
||||
}
|
||||
|
||||
for name, test := range tests {
|
||||
test.roleOptions.Mapper, _ = tf.Object()
|
||||
test.roleOptions.Mapper = tf.RESTMapper()
|
||||
err := test.roleOptions.Validate()
|
||||
if test.expectErr && err == nil {
|
||||
t.Errorf("%s: expect error happens but validate passes.", name)
|
||||
|
||||
Reference in New Issue
Block a user