diff --git a/validator/rpc/intercepter_test.go b/validator/rpc/intercepter_test.go index d16515ad3d2e..6a33d3e6068a 100644 --- a/validator/rpc/intercepter_test.go +++ b/validator/rpc/intercepter_test.go @@ -79,7 +79,8 @@ func TestServer_JwtHttpInterceptor(t *testing.T) { testHandler := s.JwtHttpInterceptor(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { // Your test handler logic here w.WriteHeader(http.StatusOK) - w.Write([]byte("Test Response")) + _, err := w.Write([]byte("Test Response")) + require.NoError(t, err) })) t.Run("no jwt was sent", func(t *testing.T) { rr := httptest.NewRecorder()