Skip to content

Commit bd9e252

Browse files
Fix linter
1 parent b2ec761 commit bd9e252

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

testing/integration/ess/proxy_url_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,13 +817,13 @@ func createBasicFleetPolicyData(t *testing.T, fleetHost string) (fleetservertest
817817
// 7. Upgrade the agent
818818
// 8. Ensure upgrade succeeds
819819
func TestFleetDownloadProxyURL(t *testing.T) {
820-
ctx := t.Context()
821820
info := define.Require(t, define.Requirements{
822821
Group: integration.Fleet,
823822
Stack: &define.Stack{},
824823
Local: false,
825824
Sudo: true,
826825
})
826+
ctx := t.Context()
827827
kibClient := info.KibanaClient
828828
fleetServerURL, err := fleettools.DefaultURL(ctx, kibClient)
829829
require.NoError(t, err)

testing/proxytest/proxytest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ func New(t *testing.T, optns ...Option) *Proxy {
208208
requestID, w.statusCode, r.Method, r.URL, r.Proto, r.RemoteAddr))
209209
}),
210210
)
211-
p.Server.Listener = l
211+
p.Listener = l
212212

213213
if opts.serverTLSConfig != nil {
214-
p.Server.TLS = opts.serverTLSConfig
214+
p.TLS = opts.serverTLSConfig
215215
}
216216

217217
u, err := url.Parse(p.URL)

0 commit comments

Comments
 (0)