This commit is contained in:
Corey Johnson 2020-05-15 10:52:26 -07:00
parent 90664792b6
commit ea164a8d48

View file

@ -982,10 +982,10 @@ func initWithStubs(branch string, stubs ...stubResponse) {
initBlankContext("", "OWNER/REPO", branch)
http := initFakeHTTP()
http.StubRepoResponse("OWNER", "REPO")
for _, s := range stubs {
http.StubResponse(s.ResponseCode, s.ResponseBody)
}
http.StubRepoResponse("OWNER", "REPO")
}
func TestPrMerge(t *testing.T) {