From 933b2e07c24a8eedac8f092206a09b996de5e923 Mon Sep 17 00:00:00 2001 From: Artur <613623@mail.ru> Date: Thu, 26 Aug 2021 09:44:10 +0000 Subject: [PATCH] add database name in go test --- tests/queries/0_stateless/02013_zlib_read_after_eof.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")