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 16, 2022
1 parent 9118fb0 commit 14e29f5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions t/plugin/clickhouse-logger.t
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ 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,
"inactive_timeout":1
}
},
"upstream": {
Expand All @@ -173,7 +175,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 All @@ -185,7 +187,7 @@ property "endpoint_addr" is required
"name":"clickhouse-logger",
"database":"default",
"logtable":"t",
"inactive_timeout":5
"inactive_timeout":1
}
},
"id":"1"
Expand Down Expand Up @@ -213,7 +215,7 @@ GET /opentracing
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
clickhouse headers: x-clickhouse-key:a
clickhouse headers: x-clickhouse-key:default
clickhouse headers: x-clickhouse-key:default
--- wait: 5

0 comments on commit 14e29f5

Please sign in to comment.