Fix InfluxDB incorrect timestamp while performing queries

This commit is contained in:
emanuele-f 2019-06-18 14:52:26 +02:00
parent b552d48034
commit 82305dd24a
7 changed files with 40 additions and 14 deletions

View file

@ -59,7 +59,7 @@ end
-- ##############################################
-- When performing the derivative between two points, the delta must be calculated
-- and accounted for the first point time
-- and accounted for the second point time
function test_simple_derivative(test)
local test_data = {
{{v=1000}, now},
@ -78,7 +78,7 @@ function test_simple_derivative(test)
local rv = test_utils.timestampAsKey(test_utils.makeTimeStamp(res.series, res.start, schema.options.step))[1]
local t1 = test_data[1][2]
local t1 = test_data[2][2]
if not(rv[t1] == 1000) then
return test:assertion_failed("rv[t1=".. t1 .."] == 1000")