mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Remove incorrect "db.DefaultContext" usages (#35366)
This commit is contained in:
		| @@ -7,7 +7,6 @@ import ( | ||||
| 	"net/http" | ||||
| 	"testing" | ||||
|  | ||||
| 	"code.gitea.io/gitea/models/db" | ||||
| 	repo_model "code.gitea.io/gitea/models/repo" | ||||
| 	"code.gitea.io/gitea/models/unittest" | ||||
| 	"code.gitea.io/gitea/modules/setting" | ||||
| @@ -28,7 +27,7 @@ func TestArchivedIssues(t *testing.T) { | ||||
| 	ctx.Req.Form.Set("state", "open") | ||||
|  | ||||
| 	// Assume: User 30 has access to two Repos with Issues, one of the Repos being archived. | ||||
| 	repos, _, _ := repo_model.GetUserRepositories(db.DefaultContext, repo_model.SearchRepoOptions{Actor: ctx.Doer}) | ||||
| 	repos, _, _ := repo_model.GetUserRepositories(t.Context(), repo_model.SearchRepoOptions{Actor: ctx.Doer}) | ||||
| 	assert.Len(t, repos, 3) | ||||
| 	IsArchived := make(map[int64]bool) | ||||
| 	NumIssues := make(map[int64]int) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user