summaryrefslogtreecommitdiffstats
path: root/models/unit_tests.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-02-19 22:39:39 +0800
committertechknowlogick <matti@mdranta.net>2019-02-19 09:39:39 -0500
commit830ae614560b0c504c00d693b63d9889bac1a2d8 (patch)
tree5fd933f8124f4dd30d0215def2a7bcc0181573be /models/unit_tests.go
parent094263db4d9f1b53c4b4c021005eec07baddd253 (diff)
downloadgitea-830ae614560b0c504c00d693b63d9889bac1a2d8.tar.gz
gitea-830ae614560b0c504c00d693b63d9889bac1a2d8.zip
Refactor issue indexer (#5363)
Diffstat (limited to 'models/unit_tests.go')
-rw-r--r--models/unit_tests.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/unit_tests.go b/models/unit_tests.go
index 28cd91215e..f87dd7ee96 100644
--- a/models/unit_tests.go
+++ b/models/unit_tests.go
@@ -44,6 +44,10 @@ func MainTest(m *testing.M, pathToGiteaRoot string) {
fatalTestError("Error creating test engine: %v\n", err)
}
+ if err = InitIssueIndexer(); err != nil {
+ fatalTestError("Error InitIssueIndexer: %v\n", err)
+ }
+
setting.AppURL = "https://try.gitea.io/"
setting.RunUser = "runuser"
setting.SSH.Port = 3000