mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Decouple unit test code from business code (#17623)
This commit is contained in:
		| @@ -8,14 +8,14 @@ import ( | ||||
| 	"os" | ||||
| 	"testing" | ||||
|  | ||||
| 	"code.gitea.io/gitea/models/db" | ||||
| 	"code.gitea.io/gitea/models/unittest" | ||||
| 	"code.gitea.io/gitea/modules/util" | ||||
|  | ||||
| 	"github.com/stretchr/testify/assert" | ||||
| ) | ||||
|  | ||||
| func TestBleveIndexAndSearch(t *testing.T) { | ||||
| 	db.PrepareTestEnv(t) | ||||
| 	unittest.PrepareTestEnv(t) | ||||
|  | ||||
| 	dir, err := os.MkdirTemp("", "bleve.index") | ||||
| 	assert.NoError(t, err) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user