The tests fail because json printing omits a burst of 5 and the parser treats that as 'burst 0'. Signed-off-by: Florian Westphal <fw@xxxxxxxxx> --- src/parser_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser_json.c b/src/parser_json.c index f0486b77a225..2d132caf529c 100644 --- a/src/parser_json.c +++ b/src/parser_json.c @@ -1784,7 +1784,7 @@ static struct stmt *json_parse_limit_stmt(struct json_ctx *ctx, const char *key, json_t *value) { struct stmt *stmt; - uint64_t rate, burst = 0; + uint64_t rate, burst = 5; const char *rate_unit = "packets", *time, *burst_unit = "bytes"; int inv = 0; -- 2.26.2