mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #101757 from pacoxu/test-fix-registry
compare the func with .Pointer() in scheduler registry-test
This commit is contained in:
commit
43e3669482
@ -76,7 +76,7 @@ func TestDecodeInto(t *testing.T) {
|
||||
func isRegistryEqual(registryX, registryY Registry) bool {
|
||||
for name, pluginFactory := range registryY {
|
||||
if val, ok := registryX[name]; ok {
|
||||
if reflect.ValueOf(pluginFactory) != reflect.ValueOf(val) {
|
||||
if reflect.ValueOf(pluginFactory).Pointer() != reflect.ValueOf(val).Pointer() {
|
||||
// pluginFactory functions are not the same.
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user