X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/0979625154094df73577d6e2be2d0e9a0a87306c..3aa065806f87d0876fbd7b05e5ded4aad380cc73:/compactor_test.go 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", },