Remove unused variables (only assigned to) from test code.
This is revealed by the go/types package, which is stricter than the Go compiler about unused variables. See also: golang/go#8560 Kubernetes-commit: e04b91facf180c17557a44e8e462858ea2936301
This commit is contained in:
parent
21a5bb8631
commit
bbfe695b05
|
@ -45,9 +45,7 @@ func TestNewWithDelegate(t *testing.T) {
|
|||
t.Fatal("unable to create fake client set")
|
||||
}
|
||||
|
||||
delegateHealthzCalled := false
|
||||
delegateConfig.HealthzChecks = append(delegateConfig.HealthzChecks, healthz.NamedCheck("delegate-health", func(r *http.Request) error {
|
||||
delegateHealthzCalled = true
|
||||
return fmt.Errorf("delegate failed healthcheck")
|
||||
}))
|
||||
|
||||
|
@ -74,9 +72,7 @@ func TestNewWithDelegate(t *testing.T) {
|
|||
wrappingConfig.LoopbackClientConfig = &rest.Config{}
|
||||
wrappingConfig.SwaggerConfig = DefaultSwaggerConfig()
|
||||
|
||||
wrappingHealthzCalled := false
|
||||
wrappingConfig.HealthzChecks = append(wrappingConfig.HealthzChecks, healthz.NamedCheck("wrapping-health", func(r *http.Request) error {
|
||||
wrappingHealthzCalled = true
|
||||
return fmt.Errorf("wrapping failed healthcheck")
|
||||
}))
|
||||
|
||||
|
|
Loading…
Reference in New Issue