really fix unit tests.
This commit is contained in:
@@ -6,12 +6,14 @@ import (
|
|||||||
|
|
||||||
"github.com/grafana/grafana/pkg/setting"
|
"github.com/grafana/grafana/pkg/setting"
|
||||||
. "github.com/smartystreets/goconvey/convey"
|
. "github.com/smartystreets/goconvey/convey"
|
||||||
|
"gopkg.in/ini.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPluginScans(t *testing.T) {
|
func TestPluginScans(t *testing.T) {
|
||||||
|
|
||||||
Convey("When scaning for plugins", t, func() {
|
Convey("When scaning for plugins", t, func() {
|
||||||
setting.StaticRootPath = filepath.Abs("../../public/")
|
setting.StaticRootPath, _ = filepath.Abs("../../public/")
|
||||||
|
setting.Cfg = ini.Empty()
|
||||||
err := Init()
|
err := Init()
|
||||||
|
|
||||||
So(err, ShouldBeNil)
|
So(err, ShouldBeNil)
|
||||||
|
|||||||
Reference in New Issue
Block a user