Commit 6407ec41 by Marcus Efraimsson

mssql: fix tests

parent e303468c
...@@ -743,9 +743,11 @@ func TestMSSQL(t *testing.T) { ...@@ -743,9 +743,11 @@ func TestMSSQL(t *testing.T) {
So(err, ShouldBeNil) So(err, ShouldBeNil)
Convey("When doing a metric query using stored procedure should return correct result", func() { Convey("When doing a metric query using stored procedure should return correct result", func() {
tsdb.Interpolate = origInterpolate
query := &tsdb.TsdbQuery{ query := &tsdb.TsdbQuery{
Queries: []*tsdb.Query{ Queries: []*tsdb.Query{
{ {
DataSource: &models.DataSource{JsonData: simplejson.New()},
Model: simplejson.NewFromAny(map[string]interface{}{ Model: simplejson.NewFromAny(map[string]interface{}{
"rawSql": `DECLARE "rawSql": `DECLARE
@from int = $__unixEpochFrom(), @from int = $__unixEpochFrom(),
...@@ -820,9 +822,11 @@ func TestMSSQL(t *testing.T) { ...@@ -820,9 +822,11 @@ func TestMSSQL(t *testing.T) {
So(err, ShouldBeNil) So(err, ShouldBeNil)
Convey("When doing a metric query using stored procedure should return correct result", func() { Convey("When doing a metric query using stored procedure should return correct result", func() {
tsdb.Interpolate = origInterpolate
query := &tsdb.TsdbQuery{ query := &tsdb.TsdbQuery{
Queries: []*tsdb.Query{ Queries: []*tsdb.Query{
{ {
DataSource: &models.DataSource{JsonData: simplejson.New()},
Model: simplejson.NewFromAny(map[string]interface{}{ Model: simplejson.NewFromAny(map[string]interface{}{
"rawSql": `DECLARE "rawSql": `DECLARE
@from int = $__unixEpochFrom(), @from int = $__unixEpochFrom(),
......
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