Commit 69c85e0d by Tobias Skarhed

Remove async

parent 12e76ad1
...@@ -59,7 +59,7 @@ describe('ElasticDatasource', function() { ...@@ -59,7 +59,7 @@ describe('ElasticDatasource', function() {
describe('When issuing metric query with interval pattern', function() { describe('When issuing metric query with interval pattern', function() {
var requestOptions, parts, header; var requestOptions, parts, header;
beforeEach(async () => { beforeEach(() => {
createDatasource({ createDatasource({
url: 'http://es.com', url: 'http://es.com',
index: '[asd-]YYYY.MM.DD', index: '[asd-]YYYY.MM.DD',
...@@ -71,7 +71,7 @@ describe('ElasticDatasource', function() { ...@@ -71,7 +71,7 @@ describe('ElasticDatasource', function() {
return Promise.resolve({ data: { responses: [] } }); return Promise.resolve({ data: { responses: [] } });
}); });
await ctx.ds.query({ ctx.ds.query({
range: { range: {
from: moment.utc([2015, 4, 30, 10]), from: moment.utc([2015, 4, 30, 10]),
to: moment.utc([2015, 5, 1, 10]), to: moment.utc([2015, 5, 1, 10]),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment