X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=t%2Funit%2Fparser%2Fparser_test.c;h=ad9f8f92b995aa27676574e38a382623894bd40d;hp=c3aa09acb866d6083534989f6b94b98168e4b608;hb=a1f741f4097874d7fab086b16db41af2c02d74be;hpb=f2b0636cfbd8f109b49c7cd288a5ae9d53a75baf 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 },