We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca81b65 commit a995eb2Copy full SHA for a995eb2
integrations/api_repo_test.go
@@ -321,7 +321,16 @@ func TestAPIRepoMigrate(t *testing.T) {
321
UID: int(testCase.userID),
322
RepoName: testCase.repoName,
323
})
324
- session.MakeRequest(t, req, testCase.expectedStatus)
+ resp := MakeRequest(t, req, NoExpectedStatus)
325
+ if resp.Code == http.StatusUnprocessableEntity {
326
+ respJSON := map[string]string{}
327
+ DecodeJSON(t, resp, &respJSON)
328
+ if assert.Equal(t, respJSON["message"], "Remote visit addressed rate limitation.") {
329
+ t.Log("test hit github rate limitation")
330
+ }
331
+ } else {
332
+ assert.EqualValues(t, testCase.expectedStatus, resp.Code)
333
334
}
335
336
0 commit comments