dont spawn new subprocess while shutting down

This commit is contained in:
bergquist
2017-12-25 13:48:50 +01:00
parent 05362a9666
commit 75a54e85dc
7 changed files with 20 additions and 14 deletions

View File

@ -1,6 +1,7 @@
package plugins
import (
"context"
"path/filepath"
"testing"
@ -14,7 +15,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(context.TODO())
So(err, ShouldBeNil)
So(len(DataSources), ShouldBeGreaterThan, 1)
@ -29,7 +30,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(context.TODO())
So(err, ShouldBeNil)
So(len(Apps), ShouldBeGreaterThan, 0)