code style fixes

This commit is contained in:
bergquist
2018-01-15 10:26:33 +01:00
parent b63c834a4b
commit b511788c51
4 changed files with 4 additions and 6 deletions

View File

@ -15,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 := initPlugins(context.TODO())
err := initPlugins(context.Background())
So(err, ShouldBeNil)
So(len(DataSources), ShouldBeGreaterThan, 1)
@ -30,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 := initPlugins(context.TODO())
err := initPlugins(context.Background())
So(err, ShouldBeNil)
So(len(Apps), ShouldBeGreaterThan, 0)