X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/959c24478e2c3a596a81cca359fd784c897f46a2..bd7da3557dc7a17020931f5a49ed5007fa81a645:/compactor_test.go?ds=sidebyside diff --git a/compactor_test.go b/compactor_test.go index 4934025..dcd9c33 100644 --- a/compactor_test.go +++ b/compactor_test.go @@ -133,7 +133,10 @@ func TestCompactorFailsWithoutALine(t *testing.T) { reply: func(w http.ResponseWriter, _ ModelFakeCall) { w.WriteHeader(http.StatusInternalServerError) - _, _ = io.WriteString(w, "down") + _, err := io.WriteString(w, "down") + if err != nil { + panic(err) + } }, want: "HTTP 500", },