diff options
author | Richard Mahn <richmahn@users.noreply.github.com> | 2019-04-17 10:06:35 -0600 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-04-17 12:06:35 -0400 |
commit | 2262811e407facea09047e94aa1850c192511587 (patch) | |
tree | a478624613dc6cf095784d629f9627b197de15e8 /models/unit_tests.go | |
parent | 059195b127848d96a4690257af19d8c97c6d2363 (diff) | |
download | gitea-2262811e407facea09047e94aa1850c192511587.tar.gz gitea-2262811e407facea09047e94aa1850c192511587.zip |
Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314)
Diffstat (limited to 'models/unit_tests.go')
-rw-r--r-- | models/unit_tests.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/unit_tests.go b/models/unit_tests.go index 28cd91215e..19fc95ea65 100644 --- a/models/unit_tests.go +++ b/models/unit_tests.go @@ -14,6 +14,7 @@ import ( "testing" "time" + "code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/setting" "github.com/Unknwon/com" @@ -116,6 +117,7 @@ func PrepareTestEnv(t testing.TB) { assert.NoError(t, removeAllWithRetry(setting.RepoRootPath)) metaPath := filepath.Join(giteaRoot, "integrations", "gitea-repositories-meta") assert.NoError(t, com.CopyDir(metaPath, setting.RepoRootPath)) + base.SetupGiteaRoot() // Makes sure GITEA_ROOT is set } type testCond struct { |