From be0f192acddfc4c8880d57e3fa1ab8c768f7487f Mon Sep 17 00:00:00 2001 From: pacoxu Date: Thu, 6 May 2021 18:27:23 +0800 Subject: [PATCH] compare the func with .Pointer() in scheduler registry-test Signed-off-by: pacoxu --- pkg/scheduler/framework/runtime/registry_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }