Commit ff610805 by bergquist

removes unused variables

parent 8ed12aa2
...@@ -3,7 +3,6 @@ package sqlstore ...@@ -3,7 +3,6 @@ package sqlstore
import ( import (
"testing" "testing"
"github.com/go-xorm/xorm"
. "github.com/smartystreets/goconvey/convey" . "github.com/smartystreets/goconvey/convey"
m "github.com/grafana/grafana/pkg/models" m "github.com/grafana/grafana/pkg/models"
...@@ -11,10 +10,8 @@ import ( ...@@ -11,10 +10,8 @@ import (
) )
func TestDashboardFolderDataAccess(t *testing.T) { func TestDashboardFolderDataAccess(t *testing.T) {
var x *xorm.Engine
Convey("Testing DB", t, func() { Convey("Testing DB", t, func() {
x = InitTestDB(t) InitTestDB(t)
Convey("Given one dashboard folder with two dashboards and one dashboard in the root folder", func() { Convey("Given one dashboard folder with two dashboards and one dashboard in the root folder", func() {
folder := insertTestDashboard("1 test dash folder", 1, 0, true, "prod", "webapp") folder := insertTestDashboard("1 test dash folder", 1, 0, true, "prod", "webapp")
......
...@@ -5,7 +5,6 @@ import ( ...@@ -5,7 +5,6 @@ import (
"testing" "testing"
"time" "time"
"github.com/go-xorm/xorm"
"github.com/grafana/grafana/pkg/components/simplejson" "github.com/grafana/grafana/pkg/components/simplejson"
m "github.com/grafana/grafana/pkg/models" m "github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/services/search" "github.com/grafana/grafana/pkg/services/search"
...@@ -15,10 +14,8 @@ import ( ...@@ -15,10 +14,8 @@ import (
) )
func TestDashboardDataAccess(t *testing.T) { func TestDashboardDataAccess(t *testing.T) {
var x *xorm.Engine
Convey("Testing DB", t, func() { Convey("Testing DB", t, func() {
x = InitTestDB(t) InitTestDB(t)
Convey("Given saved dashboard", func() { Convey("Given saved dashboard", func() {
savedFolder := insertTestDashboard("1 test dash folder", 1, 0, true, "prod", "webapp") savedFolder := insertTestDashboard("1 test dash folder", 1, 0, true, "prod", "webapp")
......
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