[api] Use "exceeded" to match GitHub API terminology

This commit is contained in:
Mislav Marohnić 2019-10-30 21:36:59 +01:00
Родитель 0a4f3b801e
Коммит e1f2e41e2b
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -321,7 +321,7 @@ func pauseUntil(timestamp int) {
rollover := time.Unix(int64(timestamp)+1, 0)
duration := time.Until(rollover)
if duration > 0 {
ui.Errorf("API rate limit reached; pausing until %v ...\n", rollover)
ui.Errorf("API rate limit exceeded; pausing until %v ...\n", rollover)
time.Sleep(duration)
}
}

Просмотреть файл

@ -436,7 +436,7 @@ Feature: hub api
}
"""
When I successfully run `hub api --rate-limit --paginate hello`
Then the stderr should contain "API rate limit reached; pausing until "
Then the stderr should contain "API rate limit exceeded; pausing until "
Scenario: Honor rate limit for 403s
Given the GitHub API server:
@ -453,4 +453,4 @@ Feature: hub api
}
"""
When I successfully run `hub api --rate-limit hello`
Then the stderr should contain "API rate limit reached; pausing until "
Then the stderr should contain "API rate limit exceeded; pausing until "