mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	Make backend code respond correct JSON when creating PR (#25353)
Fix #25351
This commit is contained in:
		| @@ -30,7 +30,7 @@ func TestPullCreate_CommitStatus(t *testing.T) { | ||||
| 				"title": "pull request from status1", | ||||
| 			}, | ||||
| 		) | ||||
| 		session.MakeRequest(t, req, http.StatusSeeOther) | ||||
| 		session.MakeRequest(t, req, http.StatusOK) | ||||
|  | ||||
| 		req = NewRequest(t, "GET", "/user1/repo1/pulls") | ||||
| 		resp := session.MakeRequest(t, req, http.StatusOK) | ||||
| @@ -127,7 +127,7 @@ func TestPullCreate_EmptyChangesWithDifferentCommits(t *testing.T) { | ||||
| 				"title": "pull request from status1", | ||||
| 			}, | ||||
| 		) | ||||
| 		session.MakeRequest(t, req, http.StatusSeeOther) | ||||
| 		session.MakeRequest(t, req, http.StatusOK) | ||||
|  | ||||
| 		req = NewRequest(t, "GET", "/user1/repo1/pulls/1") | ||||
| 		resp := session.MakeRequest(t, req, http.StatusOK) | ||||
| @@ -150,7 +150,7 @@ func TestPullCreate_EmptyChangesWithSameCommits(t *testing.T) { | ||||
| 				"title": "pull request from status1", | ||||
| 			}, | ||||
| 		) | ||||
| 		session.MakeRequest(t, req, http.StatusSeeOther) | ||||
| 		session.MakeRequest(t, req, http.StatusOK) | ||||
| 		req = NewRequest(t, "GET", "/user1/repo1/pulls/1") | ||||
| 		resp := session.MakeRequest(t, req, http.StatusOK) | ||||
| 		doc := NewHTMLParser(t, resp.Body) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user