diff --git a/pkg/scheduler/framework/runtime/registry_test.go b/pkg/scheduler/framework/runtime/registry_test.go index 5f0e8aafcd6..f9bc363c11f 100644 --- a/pkg/scheduler/framework/runtime/registry_test.go +++ b/pkg/scheduler/framework/runtime/registry_test.go @@ -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 }