@@ -39,7 +39,7 @@ func TestCreateSameReceiver(t *testing.T) {
39
39
factory := NewFactory ()
40
40
cfg := factory .CreateDefaultConfig ().(* Config )
41
41
cfg .GRPC .NetAddr .Endpoint = testutil .GetAvailableLocalAddress (t )
42
- cfg .HTTP .Endpoint = testutil .GetAvailableLocalAddress (t )
42
+ cfg .HTTP .ServerConfig . Endpoint = testutil .GetAvailableLocalAddress (t )
43
43
44
44
core , observer := observer .New (zapcore .DebugLevel )
45
45
attrs := attribute .NewSet (
@@ -91,7 +91,7 @@ func TestCreateTraces(t *testing.T) {
91
91
defaultServerConfig := confighttp .NewDefaultServerConfig ()
92
92
defaultServerConfig .Endpoint = testutil .GetAvailableLocalAddress (t )
93
93
defaultHTTPSettings := & HTTPConfig {
94
- ServerConfig : & defaultServerConfig ,
94
+ ServerConfig : defaultServerConfig ,
95
95
TracesURLPath : defaultTracesURLPath ,
96
96
MetricsURLPath : defaultMetricsURLPath ,
97
97
LogsURLPath : defaultLogsURLPath ,
@@ -136,7 +136,7 @@ func TestCreateTraces(t *testing.T) {
136
136
Protocols : Protocols {
137
137
GRPC : defaultGRPCSettings ,
138
138
HTTP : & HTTPConfig {
139
- ServerConfig : & confighttp.ServerConfig {
139
+ ServerConfig : confighttp.ServerConfig {
140
140
Endpoint : "localhost:112233" ,
141
141
},
142
142
TracesURLPath : defaultTracesURLPath ,
@@ -185,7 +185,7 @@ func TestCreateMetric(t *testing.T) {
185
185
defaultServerConfig := confighttp .NewDefaultServerConfig ()
186
186
defaultServerConfig .Endpoint = "127.0.0.1:0"
187
187
defaultHTTPSettings := & HTTPConfig {
188
- ServerConfig : & defaultServerConfig ,
188
+ ServerConfig : defaultServerConfig ,
189
189
TracesURLPath : defaultTracesURLPath ,
190
190
MetricsURLPath : defaultMetricsURLPath ,
191
191
LogsURLPath : defaultLogsURLPath ,
@@ -230,7 +230,7 @@ func TestCreateMetric(t *testing.T) {
230
230
Protocols : Protocols {
231
231
GRPC : defaultGRPCSettings ,
232
232
HTTP : & HTTPConfig {
233
- ServerConfig : & confighttp.ServerConfig {
233
+ ServerConfig : confighttp.ServerConfig {
234
234
Endpoint : "327.0.0.1:1122" ,
235
235
},
236
236
MetricsURLPath : defaultMetricsURLPath ,
@@ -279,7 +279,7 @@ func TestCreateLogs(t *testing.T) {
279
279
defaultServerConfig := confighttp .NewDefaultServerConfig ()
280
280
defaultServerConfig .Endpoint = testutil .GetAvailableLocalAddress (t )
281
281
defaultHTTPSettings := & HTTPConfig {
282
- ServerConfig : & defaultServerConfig ,
282
+ ServerConfig : defaultServerConfig ,
283
283
TracesURLPath : defaultTracesURLPath ,
284
284
MetricsURLPath : defaultMetricsURLPath ,
285
285
LogsURLPath : defaultLogsURLPath ,
@@ -324,7 +324,7 @@ func TestCreateLogs(t *testing.T) {
324
324
Protocols : Protocols {
325
325
GRPC : defaultGRPCSettings ,
326
326
HTTP : & HTTPConfig {
327
- ServerConfig : & confighttp.ServerConfig {
327
+ ServerConfig : confighttp.ServerConfig {
328
328
Endpoint : "327.0.0.1:1122" ,
329
329
},
330
330
LogsURLPath : defaultLogsURLPath ,
@@ -373,7 +373,7 @@ func TestCreateProfiles(t *testing.T) {
373
373
defaultServerConfig := confighttp .NewDefaultServerConfig ()
374
374
defaultServerConfig .Endpoint = testutil .GetAvailableLocalAddress (t )
375
375
defaultHTTPSettings := & HTTPConfig {
376
- ServerConfig : & defaultServerConfig ,
376
+ ServerConfig : defaultServerConfig ,
377
377
TracesURLPath : defaultTracesURLPath ,
378
378
MetricsURLPath : defaultMetricsURLPath ,
379
379
LogsURLPath : defaultLogsURLPath ,
@@ -418,7 +418,7 @@ func TestCreateProfiles(t *testing.T) {
418
418
Protocols : Protocols {
419
419
GRPC : defaultGRPCSettings ,
420
420
HTTP : & HTTPConfig {
421
- ServerConfig : & confighttp.ServerConfig {
421
+ ServerConfig : confighttp.ServerConfig {
422
422
Endpoint : "localhost:112233" ,
423
423
},
424
424
},
0 commit comments