control/controlclient: also rename HTTPC in the tests

This commit is contained in:
Brad Fitzpatrick
2020-04-26 07:51:54 -07:00
parent eb6de2bd88
commit 95a658e1e3
2 changed files with 9 additions and 9 deletions

View File

@ -1089,9 +1089,9 @@ func (s *server) newClientWithKey(t *testing.T, name, authKey string) *client {
hi.FrontendLogID = "go-test-only"
hi.BackendLogID = "go-test-only"
ctlc, err := NewNoStart(Options{
ServerURL: s.http.URL,
HTTPC: httpc,
TimeNow: s.control.TimeNow,
ServerURL: s.http.URL,
HTTPTestClient: httpc,
TimeNow: s.control.TimeNow,
Logf: func(fmt string, args ...interface{}) {
t.Helper()
t.Logf(name+": "+fmt, args...)