diff --git a/tests/queries/0_stateless/02013_zlib_read_after_eof.go b/tests/queries/0_stateless/02013_zlib_read_after_eof.go index c98ab13f41d..a97a1438bdf 100644 --- a/tests/queries/0_stateless/02013_zlib_read_after_eof.go +++ b/tests/queries/0_stateless/02013_zlib_read_after_eof.go @@ -24,19 +24,19 @@ func compress(data io.Reader) io.Reader { } func main() { + database := os.Getenv("CLICKHOUSE_DATABASE") p, err := url.Parse("http://localhost:8123/") if err != nil { panic(err) } q := p.Query() - q.Set("query", "INSERT INTO graphite FORMAT RowBinary") + q.Set("query", "INSERT INTO "+database+".graphite FORMAT RowBinary") p.RawQuery = q.Encode() queryUrl := p.String() var req *http.Request - req, err = http.NewRequest("POST", queryUrl, compress(os.Stdin)) req.Header.Add("Content-Encoding", "gzip")