From a1f741f4097874d7fab086b16db41af2c02d74be Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 15 Apr 2015 11:29:55 +0200 Subject: [PATCH] parser_test: Make sure that TIMESERIES end times are greater than start times. --- t/unit/parser/parser_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/unit/parser/parser_test.c b/t/unit/parser/parser_test.c index c3aa09a..ad9f8f9 100644 --- a/t/unit/parser/parser_test.c +++ b/t/unit/parser/parser_test.c @@ -172,8 +172,10 @@ struct { { "TIMESERIES 'host'.'metric' " "START 2014-02-02 " "14:02", -1, 1, SDB_AST_TYPE_TIMESERIES, 0 }, + /* the end time has to be greater than the start time; + * we'll be safe for about 200 years ;-) */ { "TIMESERIES 'host'.'metric' " - "END 2014-02-02", -1, 1, SDB_AST_TYPE_TIMESERIES, 0 }, + "END 2214-02-02", -1, 1, SDB_AST_TYPE_TIMESERIES, 0 }, { "TIMESERIES " "'host'.'metric'", -1, 1, SDB_AST_TYPE_TIMESERIES, 0 }, -- 2.30.2