Skip to content

Commit

Permalink
set batch_max_size to 1 on test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
qizhendong committed Feb 15, 2022
1 parent 9118fb0 commit 4ad14a0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions t/plugin/clickhouse-logger.t
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ property "endpoint_addr" is required
"password": "a",
"database": "default",
"logtable": "t",
"endpoint_addr": "http://127.0.0.1:10420/clickhouse-logger/test"
"endpoint_addr": "http://127.0.0.1:10420/clickhouse-logger/test",
"batch_max_size":1
}
},
"upstream": {
Expand All @@ -173,7 +174,7 @@ property "endpoint_addr" is required
},
"plugins":{
"clickhouse-logger":{
"batch_max_size":1000,
"batch_max_size":1,
"max_retry_count":0,
"retry_delay":1,
"ssl_verify":true,
Expand Down Expand Up @@ -211,9 +212,9 @@ passed
GET /opentracing
--- response_body
opentracing
--- error_log
clickhouse body: INSERT INTO t FORMAT JSONEachRow
clickhouse headers: X-ClickHouse-Key:a
clickhouse headers: X-ClickHouse-User:default
clickhouse headers: X-ClickHouse-Database:default
--- grep_error_log_out
"clickhouse body: INSERT INTO t FORMAT JSONEachRow"
"clickhouse headers: X-ClickHouse-Key:a"
"clickhouse headers: X-ClickHouse-User:default"
"clickhouse headers: X-ClickHouse-Database:default"
--- wait: 5

0 comments on commit 4ad14a0

Please sign in to comment.