From 97c549809334e40159d4055d822bfc7e3ebbbba3 Mon Sep 17 00:00:00 2001 From: bergquist Date: Wed, 13 Dec 2017 19:27:53 +0100 Subject: [PATCH] fixes broken unit test --- pkg/plugins/dashboard_importer_test.go | 2 +- pkg/plugins/dashboards_test.go | 2 +- pkg/plugins/plugins_test.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/plugins/dashboard_importer_test.go b/pkg/plugins/dashboard_importer_test.go index 317f5111e8a..d2897fad1cd 100644 --- a/pkg/plugins/dashboard_importer_test.go +++ b/pkg/plugins/dashboard_importer_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) diff --git a/pkg/plugins/dashboards_test.go b/pkg/plugins/dashboards_test.go index a0e2406cbda..980d7bb91bd 100644 --- a/pkg/plugins/dashboards_test.go +++ b/pkg/plugins/dashboards_test.go @@ -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) diff --git a/pkg/plugins/plugins_test.go b/pkg/plugins/plugins_test.go index 513d1bafa5b..f2dbc1e2e82 100644 --- a/pkg/plugins/plugins_test.go +++ b/pkg/plugins/plugins_test.go @@ -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)