diff options
Diffstat (limited to 'services/attachment/attachment_test.go')
-rw-r--r-- | services/attachment/attachment_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/attachment/attachment_test.go b/services/attachment/attachment_test.go index 9ebd0d29ab..ffce5943e5 100644 --- a/services/attachment/attachment_test.go +++ b/services/attachment/attachment_test.go @@ -17,7 +17,9 @@ import ( ) func TestMain(m *testing.M) { - unittest.MainTest(m, filepath.Join("..", "..")) + unittest.MainTest(m, &unittest.TestOptions{ + GiteaRootPath: filepath.Join("..", ".."), + }) } func TestUploadAttachment(t *testing.T) { |