Fix Elastic datasource tests - use moment.utc() instead moment() to prevent timezone-related issues, fixes #5733. (#5746)

This commit is contained in:
Alexander Zobnin 2016-08-07 13:01:53 +03:00 committed by Torkel Ödegaard
parent 6d1dd95ab3
commit f8f7543d4a

View File

@ -59,8 +59,8 @@ describe('ElasticDatasource', function() {
ctx.ds.query({
range: {
from: moment([2015, 4, 30, 10]),
to: moment([2015, 5, 1, 10])
from: moment.utc([2015, 4, 30, 10]),
to: moment.utc([2015, 5, 1, 10])
},
targets: [{ bucketAggs: [], metrics: [], query: 'escape\\:test' }]
});