From ce2b2be5de578bd9eb44b26e04db75ca61d67ca5 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 31 Oct 2017 09:39:31 -0500 Subject: Refactoring cfg refs and load / save functions (#7749) * refactoring cfg refs and load / save functions * improve error output --- api/api_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'api/api_test.go') diff --git a/api/api_test.go b/api/api_test.go index 3d4f5f156..d447fc9bd 100644 --- a/api/api_test.go +++ b/api/api_test.go @@ -16,20 +16,15 @@ import ( func TestMain(m *testing.M) { flag.Parse() + utils.TranslationsPreInit() // In the case where a dev just wants to run a single test, it's faster to just use the default // store. if filter := flag.Lookup("test.run").Value.String(); filter != "" && filter != "." { - utils.TranslationsPreInit() - utils.LoadConfig("config.json") l4g.Info("-test.run used, not creating temporary containers") os.Exit(m.Run()) } - utils.TranslationsPreInit() - utils.LoadConfig("config.json") - utils.InitTranslations(utils.Cfg.LocalizationSettings) - status := 0 container, settings, err := storetest.NewMySQLContainer() -- cgit v1.2.3-1-g7c22