Commit 97c54980 by bergquist

fixes broken unit test

parent 7c0fc59d
...@@ -18,7 +18,7 @@ func TestDashboardImport(t *testing.T) { ...@@ -18,7 +18,7 @@ func TestDashboardImport(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 := Init() err := Init()
So(err, ShouldBeNil) So(err, ShouldBeNil)
......
...@@ -17,7 +17,7 @@ func TestPluginDashboards(t *testing.T) { ...@@ -17,7 +17,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 := Init() err := Init()
So(err, ShouldBeNil) So(err, ShouldBeNil)
......
...@@ -14,7 +14,7 @@ func TestPluginScans(t *testing.T) { ...@@ -14,7 +14,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 := Init() err := Init()
So(err, ShouldBeNil) So(err, ShouldBeNil)
So(len(DataSources), ShouldBeGreaterThan, 1) So(len(DataSources), ShouldBeGreaterThan, 1)
...@@ -29,7 +29,7 @@ func TestPluginScans(t *testing.T) { ...@@ -29,7 +29,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 := Init() err := Init()
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