diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-05-10 12:57:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 04:57:06 +0000 |
commit | c355728a6fdfb35bc53e283d4447da098f39e3a2 (patch) | |
tree | 3e13e4741deba4475efc42c9ad496b171e8f93d0 /modules/indexer | |
parent | 29637b03b2976580613550aef878cc31139c3abf (diff) | |
download | gitea-c355728a6fdfb35bc53e283d4447da098f39e3a2.tar.gz gitea-c355728a6fdfb35bc53e283d4447da098f39e3a2.zip |
Remove unnecessary code (#24610)
As title, remove unnecessary code.
Diffstat (limited to 'modules/indexer')
-rw-r--r-- | modules/indexer/issues/indexer_test.go | 2 | ||||
-rw-r--r-- | modules/indexer/stats/indexer_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/indexer/issues/indexer_test.go b/modules/indexer/issues/indexer_test.go index c7c7cea90f..a2d1794f4b 100644 --- a/modules/indexer/issues/indexer_test.go +++ b/modules/indexer/issues/indexer_test.go @@ -26,7 +26,7 @@ func TestMain(m *testing.M) { func TestBleveSearchIssues(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) - setting.CfgProvider = setting.NewEmptyConfigProvider() + setting.CfgProvider, _ = setting.NewConfigProviderFromData("") tmpIndexerDir := t.TempDir() diff --git a/modules/indexer/stats/indexer_test.go b/modules/indexer/stats/indexer_test.go index be9c6659f1..2d9844f8c9 100644 --- a/modules/indexer/stats/indexer_test.go +++ b/modules/indexer/stats/indexer_test.go @@ -28,7 +28,7 @@ func TestMain(m *testing.M) { func TestRepoStatsIndex(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) - setting.CfgProvider = setting.NewEmptyConfigProvider() + setting.CfgProvider, _ = setting.NewConfigProviderFromData("") setting.LoadQueueSettings() |