mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
Merge pull request #118150 from neolit123/1.28-fix-pointer-comp-test
kubeadm: remove function pointer comparison in phase test
This commit is contained in:
commit
badcf9ab46
@ -401,14 +401,8 @@ func TestBindToCommandArgRequirements(t *testing.T) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure it is the expected function
|
|
||||||
if reflect.ValueOf(cCmd.Args).Pointer() != reflect.ValueOf(args.args).Pointer() {
|
|
||||||
t.Error("The function pointers where not equal.")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Test passing argument set
|
// Test passing argument set
|
||||||
err := cCmd.Args(cCmd, args.pass)
|
err := cCmd.Args(cCmd, args.pass)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("command %s should validate the args: %v\n %v", cCmd.Name(), args.pass, err)
|
t.Errorf("command %s should validate the args: %v\n %v", cCmd.Name(), args.pass, err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user