From 6e63555a33a975bd6a44608e7e2f1a6bcc764092 Mon Sep 17 00:00:00 2001 From: akuma06 Date: Wed, 19 Jul 2017 21:40:44 +0200 Subject: [PATCH] Forgot to commit those files --- utils/search/structs/structs_test.go | 2 ++ utils/validator/torrent/functions_test.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/utils/search/structs/structs_test.go b/utils/search/structs/structs_test.go index 3a0b7d82..9173da2d 100644 --- a/utils/search/structs/structs_test.go +++ b/utils/search/structs/structs_test.go @@ -7,6 +7,7 @@ import ( "reflect" "github.com/NyaaPantsu/nyaa/config" + "github.com/NyaaPantsu/nyaa/utils/categories" ) // run before config/parse.go:init() @@ -14,6 +15,7 @@ var _ = func() (_ struct{}) { config.ConfigPath = path.Join("..", "..", "..", config.ConfigPath) config.DefaultConfigPath = path.Join("..", "..", "..", config.DefaultConfigPath) config.Reload() + categories.InitCategories() return }() diff --git a/utils/validator/torrent/functions_test.go b/utils/validator/torrent/functions_test.go index e392db02..192240d1 100644 --- a/utils/validator/torrent/functions_test.go +++ b/utils/validator/torrent/functions_test.go @@ -7,6 +7,7 @@ import ( "strings" "github.com/NyaaPantsu/nyaa/config" + "github.com/NyaaPantsu/nyaa/utils/categories" "github.com/NyaaPantsu/nyaa/utils/publicSettings" ) @@ -16,6 +17,7 @@ var _ = func() (_ struct{}) { config.DefaultConfigPath = path.Join("..", "..", "..", config.DefaultConfigPath) config.Reload() config.Get().I18n.Directory = path.Join("..", "..", "..", config.Get().I18n.Directory) + categories.InitCategories() return }()