Fix pkg/probe/http unit test for go 1.6.

pull/6/head
Joe Finney 2016-03-21 14:47:26 -07:00
parent 03043e4114
commit bc791cbd4e
1 changed files with 4 additions and 1 deletions

View File

@ -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) {