mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Fix bug about ListOptions and stars/watchers pagnation (#14556)
* Fix bug about ListOptions and stars/watchers pagnation * fix unit test Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
		| @@ -18,7 +18,7 @@ func TestGetCommitStatuses(t *testing.T) { | ||||
|  | ||||
| 	sha1 := "1234123412341234123412341234123412341234" | ||||
|  | ||||
| 	statuses, maxResults, err := GetCommitStatuses(repo1, sha1, &CommitStatusOptions{}) | ||||
| 	statuses, maxResults, err := GetCommitStatuses(repo1, sha1, &CommitStatusOptions{ListOptions: ListOptions{Page: 1, PageSize: 50}}) | ||||
| 	assert.NoError(t, err) | ||||
| 	assert.Equal(t, int(maxResults), 5) | ||||
| 	assert.Len(t, statuses, 5) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lunny Xiao
					Lunny Xiao