Code

parser_test: Make sure that TIMESERIES end times are greater than start times.
authorSebastian Harl <sh@tokkee.org>
Wed, 15 Apr 2015 09:29:55 +0000 (11:29 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 15 Apr 2015 09:29:55 +0000 (11:29 +0200)
t/unit/parser/parser_test.c

index c3aa09acb866d6083534989f6b94b98168e4b608..ad9f8f92b995aa27676574e38a382623894bd40d 100644 (file)
@@ -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 },