From 4ad14a068559de88a62c8579860912103235a843 Mon Sep 17 00:00:00 2001 From: qizhendong Date: Tue, 15 Feb 2022 16:42:17 +0800 Subject: [PATCH] set batch_max_size to 1 on test cases --- t/plugin/clickhouse-logger.t | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/t/plugin/clickhouse-logger.t b/t/plugin/clickhouse-logger.t index 459099d2e014f..0193034d6d1f1 100644 --- a/t/plugin/clickhouse-logger.t +++ b/t/plugin/clickhouse-logger.t @@ -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": { @@ -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, @@ -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