Commit b511788c by bergquist

code style fixes

parent b63c834a
...@@ -92,7 +92,7 @@ func pluginScenario(desc string, t *testing.T, fn func()) { ...@@ -92,7 +92,7 @@ func pluginScenario(desc string, t *testing.T, fn func()) {
setting.Cfg = ini.Empty() setting.Cfg = ini.Empty()
sec, _ := setting.Cfg.NewSection("plugin.test-app") sec, _ := setting.Cfg.NewSection("plugin.test-app")
sec.NewKey("path", "../../tests/test-app") sec.NewKey("path", "../../tests/test-app")
err := initPlugins(context.TODO()) err := initPlugins(context.Background())
So(err, ShouldBeNil) So(err, ShouldBeNil)
......
...@@ -18,7 +18,7 @@ func TestPluginDashboards(t *testing.T) { ...@@ -18,7 +18,7 @@ func TestPluginDashboards(t *testing.T) {
setting.Cfg = ini.Empty() setting.Cfg = ini.Empty()
sec, _ := setting.Cfg.NewSection("plugin.test-app") sec, _ := setting.Cfg.NewSection("plugin.test-app")
sec.NewKey("path", "../../tests/test-app") sec.NewKey("path", "../../tests/test-app")
err := initPlugins(context.TODO()) err := initPlugins(context.Background())
So(err, ShouldBeNil) So(err, ShouldBeNil)
......
...@@ -35,8 +35,6 @@ type PluginScanner struct { ...@@ -35,8 +35,6 @@ type PluginScanner struct {
errors []error errors []error
} }
type Dispose func()
type PluginManager struct { type PluginManager struct {
log log.Logger log log.Logger
} }
......
...@@ -15,7 +15,7 @@ func TestPluginScans(t *testing.T) { ...@@ -15,7 +15,7 @@ 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() setting.Cfg = ini.Empty()
err := initPlugins(context.TODO()) err := initPlugins(context.Background())
So(err, ShouldBeNil) So(err, ShouldBeNil)
So(len(DataSources), ShouldBeGreaterThan, 1) So(len(DataSources), ShouldBeGreaterThan, 1)
...@@ -30,7 +30,7 @@ func TestPluginScans(t *testing.T) { ...@@ -30,7 +30,7 @@ func TestPluginScans(t *testing.T) {
setting.Cfg = ini.Empty() setting.Cfg = ini.Empty()
sec, _ := setting.Cfg.NewSection("plugin.nginx-app") sec, _ := setting.Cfg.NewSection("plugin.nginx-app")
sec.NewKey("path", "../../tests/test-app") sec.NewKey("path", "../../tests/test-app")
err := initPlugins(context.TODO()) err := initPlugins(context.Background())
So(err, ShouldBeNil) So(err, ShouldBeNil)
So(len(Apps), ShouldBeGreaterThan, 0) So(len(Apps), ShouldBeGreaterThan, 0)
......
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