зеркало из https://github.com/mislav/hub.git
[api] Use "exceeded" to match GitHub API terminology
This commit is contained in:
Родитель
0a4f3b801e
Коммит
e1f2e41e2b
|
@ -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 "
|
||||
|
|
Загрузка…
Ссылка в новой задаче