提交 e1f2e41e 编写于 作者: M Mislav Marohnić

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

上级 0a4f3b80
......@@ -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 "
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册