From: Sebastian Harl Date: Wed, 15 Apr 2015 09:29:55 +0000 (+0200) Subject: parser_test: Make sure that TIMESERIES end times are greater than start times. X-Git-Tag: sysdb-0.8.0~111 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a1f741f4097874d7fab086b16db41af2c02d74be;p=sysdb.git parser_test: Make sure that TIMESERIES end times are greater than start times. --- 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 },