@@ -382,11 +382,10 @@ func Test_UpdatePullRequest(t *testing.T) {
382382 textContent := getTextResult (t , result )
383383
384384 // Unmarshal and verify the minimal result
385- var updateResp MinimalUpdateResponse
385+ var updateResp MinimalResponse
386386 err = json .Unmarshal ([]byte (textContent .Text ), & updateResp )
387387 require .NoError (t , err )
388388 assert .Equal (t , tc .expectedPR .GetHTMLURL (), updateResp .URL )
389- assert .Equal (t , true , updateResp .Updated )
390389 })
391390 }
392391}
@@ -565,11 +564,10 @@ func Test_UpdatePullRequest_Draft(t *testing.T) {
565564 textContent := getTextResult (t , result )
566565
567566 // Unmarshal and verify the minimal result
568- var updateResp MinimalUpdateResponse
567+ var updateResp MinimalResponse
569568 err = json .Unmarshal ([]byte (textContent .Text ), & updateResp )
570569 require .NoError (t , err )
571570 assert .Equal (t , tc .expectedPR .GetHTMLURL (), updateResp .URL )
572- assert .Equal (t , true , updateResp .Updated )
573571 })
574572 }
575573}
@@ -1955,12 +1953,9 @@ func Test_CreatePullRequest(t *testing.T) {
19551953 textContent := getTextResult (t , result )
19561954
19571955 // Unmarshal and verify the minimal result
1958- var returnedPR MinimalResourceResponse
1956+ var returnedPR MinimalResponse
19591957 err = json .Unmarshal ([]byte (textContent .Text ), & returnedPR )
19601958 require .NoError (t , err )
1961- assert .Equal (t , tc .expectedPR .GetNumber (), returnedPR .Number )
1962- assert .Equal (t , tc .expectedPR .GetTitle (), returnedPR .Title )
1963- assert .Equal (t , tc .expectedPR .GetState (), returnedPR .State )
19641959 assert .Equal (t , tc .expectedPR .GetHTMLURL (), returnedPR .URL )
19651960 })
19661961 }
0 commit comments