mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Update go tool dependencies, restructure lint targets (#24239)
- Update all tool dependencies to latest tag - Remove unused errcheck, it is part of golangci-lint - Include main.go in air - Enable wastedassign again now that it's [generics-compatible](https://github.com/golangci/golangci-lint/pull/3689) - Restructured lint targets to new `lint-*` namespace
This commit is contained in:
		@@ -183,18 +183,17 @@ func TestAPISearchRepo(t *testing.T) {
 | 
			
		||||
	for _, testCase := range testCases {
 | 
			
		||||
		t.Run(testCase.name, func(t *testing.T) {
 | 
			
		||||
			for userToLogin, expected := range testCase.expectedResults {
 | 
			
		||||
				var session *TestSession
 | 
			
		||||
				var testName string
 | 
			
		||||
				var userID int64
 | 
			
		||||
				var token string
 | 
			
		||||
				if userToLogin != nil && userToLogin.ID > 0 {
 | 
			
		||||
					testName = fmt.Sprintf("LoggedUser%d", userToLogin.ID)
 | 
			
		||||
					session = loginUser(t, userToLogin.Name)
 | 
			
		||||
					session := loginUser(t, userToLogin.Name)
 | 
			
		||||
					token = getTokenForLoggedInUser(t, session)
 | 
			
		||||
					userID = userToLogin.ID
 | 
			
		||||
				} else {
 | 
			
		||||
					testName = "AnonymousUser"
 | 
			
		||||
					session = emptyTestSession(t)
 | 
			
		||||
					_ = emptyTestSession(t)
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				t.Run(testName, func(t *testing.T) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user