mirror of https://github.com/k3s-io/k3s
Fix pkg/probe/http unit test for go 1.6.
parent
03043e4114
commit
bc791cbd4e
|
@ -89,7 +89,10 @@ func TestHTTPProbeChecker(t *testing.T) {
|
||||||
handleReq(FailureCode, "fail body"),
|
handleReq(FailureCode, "fail body"),
|
||||||
nil,
|
nil,
|
||||||
probe.Failure,
|
probe.Failure,
|
||||||
[]string{fmt.Sprintf("HTTP probe failed with statuscode: %d", FailureCode)},
|
[]string{
|
||||||
|
fmt.Sprintf("HTTP probe failed with statuscode: %d", FailureCode),
|
||||||
|
fmt.Sprintf("malformed HTTP status code \"%d\"", FailureCode),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
func(w http.ResponseWriter, r *http.Request) {
|
func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
Loading…
Reference in New Issue