mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +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 {
|
func isRegistryEqual(registryX, registryY Registry) bool {
|
||||||
for name, pluginFactory := range registryY {
|
for name, pluginFactory := range registryY {
|
||||||
if val, ok := registryX[name]; ok {
|
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.
|
// pluginFactory functions are not the same.
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user