提交 50fce1d4 编写于 作者: J Jingwen Owen Ou

Rename GH_API_HOST to HUB_TEST_HOST

上级 78389b52
......@@ -106,8 +106,7 @@ Given(/^the GitHub API server:$/) do |endpoints_str|
eval endpoints_str, binding
end
# hit our Sinatra server instead of github.com
set_env 'HUB_TEST_HOST', "127.0.0.1:#{@server.port}"
set_env 'GH_API_HOST', "http://127.0.0.1:#{@server.port}"
set_env 'HUB_TEST_HOST', "http://127.0.0.1:#{@server.port}"
end
Given(/^I use a debugging proxy(?: at "(.+?)")?$/) do |address|
......
......@@ -30,7 +30,6 @@ Before do
set_env 'HUB_SYSTEM_GIT', system_git
# ensure that api.github.com is actually never hit in tests
set_env 'HUB_TEST_HOST', '127.0.0.1:0'
set_env 'GH_API_HOST', 'http://127.0.0.1:0'
# ensure we use fakebin `open` to test browsing
set_env 'BROWSER', 'open'
# sabotage opening a commit message editor interactively
......
......@@ -10,7 +10,7 @@ type apiHost struct {
}
func (ah *apiHost) String() string {
host := os.Getenv("GH_API_HOST")
host := os.Getenv("HUB_TEST_HOST")
if host == "" && ah.Host != "" {
host = ah.Host
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册