@@ -670,17 +670,17 @@ func Test_ListPullRequests(t *testing.T) {
670670 // Parse the result and get the text content if no error
671671 textContent := getTextResult (t , result )
672672
673- // Unmarshal and verify the minimal result
674- var returnedPRs []MinimalPullRequest
673+ // Unmarshal and verify the result
674+ var returnedPRs []* github. PullRequest
675675 err = json .Unmarshal ([]byte (textContent .Text ), & returnedPRs )
676676 require .NoError (t , err )
677677 assert .Len (t , returnedPRs , 2 )
678- assert .Equal (t , tc .expectedPRs [0 ].GetNumber (), returnedPRs [0 ].Number )
679- assert .Equal (t , tc .expectedPRs [0 ].GetTitle (), returnedPRs [0 ].Title )
680- assert .Equal (t , tc .expectedPRs [0 ].GetState (), returnedPRs [0 ].State )
681- assert .Equal (t , tc .expectedPRs [1 ].GetNumber (), returnedPRs [1 ].Number )
682- assert .Equal (t , tc .expectedPRs [1 ].GetTitle (), returnedPRs [1 ].Title )
683- assert .Equal (t , tc .expectedPRs [1 ].GetState (), returnedPRs [1 ].State )
678+ assert .Equal (t , * tc .expectedPRs [0 ].Number , * returnedPRs [0 ].Number )
679+ assert .Equal (t , * tc .expectedPRs [0 ].Title , * returnedPRs [0 ].Title )
680+ assert .Equal (t , * tc .expectedPRs [0 ].State , * returnedPRs [0 ].State )
681+ assert .Equal (t , * tc .expectedPRs [1 ].Number , * returnedPRs [1 ].Number )
682+ assert .Equal (t , * tc .expectedPRs [1 ].Title , * returnedPRs [1 ].Title )
683+ assert .Equal (t , * tc .expectedPRs [1 ].State , * returnedPRs [1 ].State )
684684 })
685685 }
686686}
0 commit comments