func (t *HTTPService) SetReplyError(replyError *http2.Error) {
	t.lock.Lock()
	defer t.lock.Unlock()
	t.replyError = replyError
}
SetReplyError sets Error that will be returned as a response
package test
import (
	"compress/gzip"
	"context"
	"fmt"
	"io"
	"io/ioutil"
	"net/http"
	"strings"
	"sync"
	"testing"
	http2 "github.com/influxdata/influxdb-client-go/v2/api/http"
	"github.com/stretchr/testify/assert"
)
type HTTPService struct {
	serverURL      string
	authorization  string
	lines          []string
	t              *testing.T
	wasGzip        bool
	requestHandler func(c *HTTPService, url string, body io.Reader) error
	replyError     *http2.Error
	lock           sync.Mutex
}
func (t *HTTPService) WasGzip() bool {
	return t.wasGzip
}
func (t *HTTPService) SetWasGzip(wasGzip bool) {
	t.wasGzip = wasGzip
}
func (t *HTTPService) ServerURL() string {
	return t.serverURL
}
func (t *HTTPService) ServerAPIURL() string {
	return t.serverURL
}
func (t *HTTPService) Authorization() string {
	return t.authorization
}
func (t *HTTPService) HTTPClient() *http.Client {
	return nil
}
func (t *HTTPService) Close() {
	t.lock.Lock()
	if len(t.lines) > 0 {
		t.lines = t.lines[:0]
	}
	t.wasGzip = false
	t.replyError = nil
	t.requestHandler = nil
	t.lock.Unlock()
}