mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Enable tenv and testifylint rules (#32852)
Enables tenv and testifylint linters closes: https://github.com/go-gitea/gitea/issues/32842
This commit is contained in:
		| @@ -4,7 +4,6 @@ | ||||
| package activities_test | ||||
|  | ||||
| import ( | ||||
| 	"fmt" | ||||
| 	"testing" | ||||
| 	"time" | ||||
|  | ||||
| @@ -91,11 +90,11 @@ func TestGetUserHeatmapDataByUser(t *testing.T) { | ||||
| 		assert.NoError(t, err) | ||||
| 		assert.Len(t, actions, contributions, "invalid action count: did the test data became too old?") | ||||
| 		assert.Equal(t, count, int64(contributions)) | ||||
| 		assert.Equal(t, tc.CountResult, contributions, fmt.Sprintf("testcase '%s'", tc.desc)) | ||||
| 		assert.Equal(t, tc.CountResult, contributions, "testcase '%s'", tc.desc) | ||||
|  | ||||
| 		// Test JSON rendering | ||||
| 		jsonData, err := json.Marshal(heatmap) | ||||
| 		assert.NoError(t, err) | ||||
| 		assert.Equal(t, tc.JSONResult, string(jsonData)) | ||||
| 		assert.JSONEq(t, tc.JSONResult, string(jsonData)) | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user