Skip to content

Commit 6cc0bda

Browse files
authored
Fix failing unit test (#1176)
1 parent e1649fa commit 6cc0bda

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

internal/collector/otel_collector_plugin_test.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ func TestCollector_ProcessNginxConfigUpdateTopic(t *testing.T) {
173173
},
174174
},
175175
receivers: config.Receivers{
176-
HostMetrics: nil,
177-
OtlpReceivers: nil,
176+
HostMetrics: nil,
177+
OtlpReceivers: nil,
178+
TcplogReceivers: make(map[string]*config.TcplogReceiver),
178179
NginxPlusReceivers: []config.NginxPlusReceiver{
179180
{
180181
InstanceID: "123",
@@ -213,8 +214,9 @@ func TestCollector_ProcessNginxConfigUpdateTopic(t *testing.T) {
213214
},
214215
},
215216
receivers: config.Receivers{
216-
HostMetrics: nil,
217-
OtlpReceivers: nil,
217+
HostMetrics: nil,
218+
OtlpReceivers: nil,
219+
TcplogReceivers: make(map[string]*config.TcplogReceiver),
218220
NginxReceivers: []config.NginxReceiver{
219221
{
220222
InstanceID: "123",

0 commit comments

Comments
 (0)