X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/959c24478e2c3a596a81cca359fd784c897f46a2..2a528fe2981639cf099c713a6be16b8ea0e2cc67:/model_test.go?ds=sidebyside diff --git a/model_test.go b/model_test.go index 97be6e2..4045e9d 100644 --- a/model_test.go +++ b/model_test.go @@ -150,7 +150,10 @@ func TestClientRecordsEachCall(t *testing.T) { if call.number == 1 { w.WriteHeader(http.StatusTooManyRequests) - _, _ = io.WriteString(w, `{"detail": "slow down"}`) + _, err := io.WriteString(w, `{"detail": "slow down"}`) + if err != nil { + panic(err) + } return }