Commit 4f6a5250 by woodsaj

fix plugin unit test

parent 1b5c40dd
...@@ -4,14 +4,15 @@ import ( ...@@ -4,14 +4,15 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/grafana/grafana/pkg/setting"
. "github.com/smartystreets/goconvey/convey" . "github.com/smartystreets/goconvey/convey"
) )
func TestPluginScans(t *testing.T) { func TestPluginScans(t *testing.T) {
Convey("When scaning for plugins", t, func() { Convey("When scaning for plugins", t, func() {
path, _ := filepath.Abs("../../public/app/plugins") setting.StaticRootPath = filepath.Abs("../../public/")
err := scan(path) err := Init()
So(err, ShouldBeNil) So(err, ShouldBeNil)
So(len(DataSources), ShouldBeGreaterThan, 1) So(len(DataSources), ShouldBeGreaterThan, 1)
......
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