mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 00:11:04 +00:00 
			
		
		
		
	[GITEA] Show manual cron run's last time (squash) 27 jobs in cron fixtures
This commit is contained in:
		
					parent
					
						
							
								b2fb435364
							
						
					
				
			
			
				commit
				
					
						bb71759454
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -298,11 +298,11 @@ func TestAPICron(t *testing.T) {
 | 
			
		|||
		req := NewRequest(t, "GET", urlStr)
 | 
			
		||||
		resp := MakeRequest(t, req, http.StatusOK)
 | 
			
		||||
 | 
			
		||||
		assert.Equal(t, "26", resp.Header().Get("X-Total-Count"))
 | 
			
		||||
		assert.Equal(t, "27", resp.Header().Get("X-Total-Count"))
 | 
			
		||||
 | 
			
		||||
		var crons []api.Cron
 | 
			
		||||
		DecodeJSON(t, resp, &crons)
 | 
			
		||||
		assert.Len(t, crons, 26)
 | 
			
		||||
		assert.Len(t, crons, 27)
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	t.Run("Execute", func(t *testing.T) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue