diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-04-14 21:58:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 21:58:21 +0800 |
commit | b8911fb45673fdc3fce587892c4d9215e7c15019 (patch) | |
tree | df72d047049f53cdbe9cb5d16a03b814f29e9ca6 /services/repository/archiver | |
parent | 4dabc212c70d0cb0874d3af61d1ea24abd468f7e (diff) | |
download | gitea-b8911fb45673fdc3fce587892c4d9215e7c15019.tar.gz gitea-b8911fb45673fdc3fce587892c4d9215e7c15019.zip |
Use a struct as test options (#19393)
* Use a struct as test options
* Fix name
* Fix test
Diffstat (limited to 'services/repository/archiver')
-rw-r--r-- | services/repository/archiver/archiver_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/repository/archiver/archiver_test.go b/services/repository/archiver/archiver_test.go index b7fb6cb0ca..24437ce76c 100644 --- a/services/repository/archiver/archiver_test.go +++ b/services/repository/archiver/archiver_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 TestArchive_Basic(t *testing.T) { |