From 95a658e1e39cce54f8df69a98593c393be0aa309 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 26 Apr 2020 07:51:54 -0700 Subject: [PATCH] control/controlclient: also rename HTTPC in the tests --- control/controlclient/auto_test.go | 6 +++--- control/controlclient/direct_test.go | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/control/controlclient/auto_test.go b/control/controlclient/auto_test.go index 131b1296a..974b3e55f 100644 --- a/control/controlclient/auto_test.go +++ b/control/controlclient/auto_test.go @@ -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...) diff --git a/control/controlclient/direct_test.go b/control/controlclient/direct_test.go index 1b3d7ea19..a5ea9c431 100644 --- a/control/controlclient/direct_test.go +++ b/control/controlclient/direct_test.go @@ -51,8 +51,8 @@ func TestClientsReusingKeys(t *testing.T) { hi.FrontendLogID = "go-test-only" hi.BackendLogID = "go-test-only" c1, err := NewDirect(Options{ - ServerURL: httpsrv.URL, - HTTPC: httpsrv.Client(), + ServerURL: httpsrv.URL, + HTTPTestClient: httpsrv.Client(), //TimeNow: s.control.TimeNow, Logf: func(fmt string, args ...interface{}) { t.Helper() @@ -92,8 +92,8 @@ func TestClientsReusingKeys(t *testing.T) { } c2, err := NewDirect(Options{ - ServerURL: httpsrv.URL, - HTTPC: httpsrv.Client(), + ServerURL: httpsrv.URL, + HTTPTestClient: httpsrv.Client(), Logf: func(fmt string, args ...interface{}) { t.Helper() t.Logf("c2: "+fmt, args...) @@ -159,8 +159,8 @@ func TestClientsReusingOldKey(t *testing.T) { hi.BackendLogID = "go-test-only" genOpts := func() Options { return Options{ - ServerURL: httpsrv.URL, - HTTPC: httpc, + ServerURL: httpsrv.URL, + HTTPTestClient: httpc, //TimeNow: s.control.TimeNow, Logf: func(fmt string, args ...interface{}) { t.Helper()