diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-04-25 23:06:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 23:06:39 +0800 |
commit | 5cf7da63ee74939595b8800787dcdb4c7290fa4f (patch) | |
tree | 39f6c9c6e2a0e78e63949b9299f52a8954abe0bc /modules/indexer/issues | |
parent | 56d4893b2a996da6388801c9c8ff16b9b588ad55 (diff) | |
download | gitea-5cf7da63ee74939595b8800787dcdb4c7290fa4f.tar.gz gitea-5cf7da63ee74939595b8800787dcdb4c7290fa4f.zip |
Refactor config provider (#24245)
This PR introduces more abstract about `ConfigProvider` and hides more `ini` references.
---------
Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'modules/indexer/issues')
-rw-r--r-- | modules/indexer/issues/indexer_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/indexer/issues/indexer_test.go b/modules/indexer/issues/indexer_test.go index bf9d6d0d16..c7c7cea90f 100644 --- a/modules/indexer/issues/indexer_test.go +++ b/modules/indexer/issues/indexer_test.go @@ -16,7 +16,6 @@ import ( _ "code.gitea.io/gitea/models" "github.com/stretchr/testify/assert" - "gopkg.in/ini.v1" ) func TestMain(m *testing.M) { @@ -27,7 +26,7 @@ func TestMain(m *testing.M) { func TestBleveSearchIssues(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) - setting.CfgProvider = ini.Empty() + setting.CfgProvider = setting.NewEmptyConfigProvider() tmpIndexerDir := t.TempDir() |