@@ -195,7 +195,7 @@ func TestSendTraces(t *testing.T) {
195
195
cfg := factory .CreateDefaultConfig ().(* Config )
196
196
cfg .GRPCClientSettings = configgrpc.GRPCClientSettings {
197
197
Endpoint : ln .Addr ().String (),
198
- TLSSetting : configtls.TLSClientSetting {
198
+ TLSSetting : & configtls.TLSClientSetting {
199
199
Insecure : true ,
200
200
},
201
201
Headers : map [string ]string {
@@ -258,17 +258,19 @@ func TestSendTracesWhenEndpointHasHttpScheme(t *testing.T) {
258
258
gRPCClientSettings configgrpc.GRPCClientSettings
259
259
}{
260
260
{
261
- name : "Use https scheme" ,
262
- useTLS : true ,
263
- scheme : "https://" ,
264
- gRPCClientSettings : configgrpc.GRPCClientSettings {},
261
+ name : "Use https scheme" ,
262
+ useTLS : true ,
263
+ scheme : "https://" ,
264
+ gRPCClientSettings : configgrpc.GRPCClientSettings {
265
+ TLSSetting : & configtls.TLSClientSetting {},
266
+ },
265
267
},
266
268
{
267
269
name : "Use http scheme" ,
268
270
useTLS : false ,
269
271
scheme : "http://" ,
270
272
gRPCClientSettings : configgrpc.GRPCClientSettings {
271
- TLSSetting : configtls.TLSClientSetting {
273
+ TLSSetting : & configtls.TLSClientSetting {
272
274
Insecure : true ,
273
275
},
274
276
},
@@ -336,7 +338,7 @@ func TestSendMetrics(t *testing.T) {
336
338
cfg := factory .CreateDefaultConfig ().(* Config )
337
339
cfg .GRPCClientSettings = configgrpc.GRPCClientSettings {
338
340
Endpoint : ln .Addr ().String (),
339
- TLSSetting : configtls.TLSClientSetting {
341
+ TLSSetting : & configtls.TLSClientSetting {
340
342
Insecure : true ,
341
343
},
342
344
Headers : map [string ]string {
@@ -404,7 +406,7 @@ func TestSendTraceDataServerDownAndUp(t *testing.T) {
404
406
cfg .QueueSettings .Enabled = false
405
407
cfg .GRPCClientSettings = configgrpc.GRPCClientSettings {
406
408
Endpoint : ln .Addr ().String (),
407
- TLSSetting : configtls.TLSClientSetting {
409
+ TLSSetting : & configtls.TLSClientSetting {
408
410
Insecure : true ,
409
411
},
410
412
// Need to wait for every request blocking until either request timeouts or succeed.
@@ -464,7 +466,7 @@ func TestSendTraceDataServerStartWhileRequest(t *testing.T) {
464
466
cfg := factory .CreateDefaultConfig ().(* Config )
465
467
cfg .GRPCClientSettings = configgrpc.GRPCClientSettings {
466
468
Endpoint : ln .Addr ().String (),
467
- TLSSetting : configtls.TLSClientSetting {
469
+ TLSSetting : & configtls.TLSClientSetting {
468
470
Insecure : true ,
469
471
},
470
472
}
@@ -540,7 +542,7 @@ func TestSendLogData(t *testing.T) {
540
542
cfg := factory .CreateDefaultConfig ().(* Config )
541
543
cfg .GRPCClientSettings = configgrpc.GRPCClientSettings {
542
544
Endpoint : ln .Addr ().String (),
543
- TLSSetting : configtls.TLSClientSetting {
545
+ TLSSetting : & configtls.TLSClientSetting {
544
546
Insecure : true ,
545
547
},
546
548
}
0 commit comments