summaryrefslogtreecommitdiffstats
path: root/modules/indexer/code/bleve_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/indexer/code/bleve_test.go')
-rw-r--r--modules/indexer/code/bleve_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/indexer/code/bleve_test.go b/modules/indexer/code/bleve_test.go
index 89cfceea2d..2b3128ac88 100644
--- a/modules/indexer/code/bleve_test.go
+++ b/modules/indexer/code/bleve_test.go
@@ -6,12 +6,12 @@ package code
import (
"io/ioutil"
- "os"
"path/filepath"
"testing"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/util"
"github.com/stretchr/testify/assert"
)
@@ -29,7 +29,7 @@ func TestIndexAndSearch(t *testing.T) {
assert.Fail(t, "Unable to create temporary directory")
return
}
- defer os.RemoveAll(dir)
+ defer util.RemoveAll(dir)
setting.Indexer.RepoIndexerEnabled = true
idx, _, err := NewBleveIndexer(dir)