mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #87646 from SataQiu/staticcheck-20200129
Fix staticcheck failures of pkg/probe/http
This commit is contained in:
commit
c7297a4498
@ -6,7 +6,6 @@ pkg/controller/podautoscaler
|
|||||||
pkg/controller/replicaset
|
pkg/controller/replicaset
|
||||||
pkg/controller/resourcequota
|
pkg/controller/resourcequota
|
||||||
pkg/controller/statefulset
|
pkg/controller/statefulset
|
||||||
pkg/probe/http
|
|
||||||
pkg/registry/autoscaling/horizontalpodautoscaler/storage
|
pkg/registry/autoscaling/horizontalpodautoscaler/storage
|
||||||
pkg/registry/core/namespace/storage
|
pkg/registry/core/namespace/storage
|
||||||
pkg/registry/core/persistentvolumeclaim/storage
|
pkg/registry/core/persistentvolumeclaim/storage
|
||||||
|
@ -73,7 +73,7 @@ func TestHTTPProbeProxy(t *testing.T) {
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
fmt.Fprintf(w, res)
|
fmt.Fprint(w, res)
|
||||||
})
|
})
|
||||||
err := http.ListenAndServe(":9098", nil)
|
err := http.ListenAndServe(":9098", nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user