fixes failing tests

pull/10519/merge
bergquist 8 years ago
parent e1d4bf2607
commit 9edd7701b2
  1. 2
      pkg/plugins/dashboard_importer_test.go
  2. 2
      pkg/plugins/dashboards_test.go
  3. 4
      pkg/plugins/plugins_test.go

@ -18,7 +18,7 @@ func TestDashboardImport(t *testing.T) {
setting.Cfg = ini.Empty()
sec, _ := setting.Cfg.NewSection("plugin.test-app")
sec.NewKey("path", "../../tests/test-app")
err := Init()
_, err := Init()
So(err, ShouldBeNil)

@ -17,7 +17,7 @@ func TestPluginDashboards(t *testing.T) {
setting.Cfg = ini.Empty()
sec, _ := setting.Cfg.NewSection("plugin.test-app")
sec.NewKey("path", "../../tests/test-app")
err := Init()
_, err := Init()
So(err, ShouldBeNil)

@ -14,7 +14,7 @@ func TestPluginScans(t *testing.T) {
Convey("When scaning for plugins", t, func() {
setting.StaticRootPath, _ = filepath.Abs("../../public/")
setting.Cfg = ini.Empty()
err := Init()
_, err := Init()
So(err, ShouldBeNil)
So(len(DataSources), ShouldBeGreaterThan, 1)
@ -29,7 +29,7 @@ func TestPluginScans(t *testing.T) {
setting.Cfg = ini.Empty()
sec, _ := setting.Cfg.NewSection("plugin.nginx-app")
sec.NewKey("path", "../../tests/test-app")
err := Init()
_, err := Init()
So(err, ShouldBeNil)
So(len(Apps), ShouldBeGreaterThan, 0)

Loading…
Cancel
Save