Skip to content

Commit 0139f27

Browse files
committed
fix: lint, UT and Race UT
1 parent 09b005f commit 0139f27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/collector/otel_collector_plugin_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,6 @@ func TestCollector_findAvailableSyslogServers(t *testing.T) {
981981

982982
for _, test := range tests {
983983
t.Run(test.name, func(tt *testing.T) {
984-
collector, err := NewCollector(conf)
985984
require.NoError(t, err)
986985

987986
collector.previousNAPSysLogServer = test.previousNAPSysLogServer

internal/config/config_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,7 @@ func createConfig() *Config {
11761176
LogsGzip: map[string]*LogsGzip{
11771177
"default": {},
11781178
},
1179+
Syslog: map[string]*Syslog{"default": {}},
11791180
},
11801181
Receivers: Receivers{
11811182
OtlpReceivers: map[string]*OtlpReceiver{
@@ -1259,7 +1260,7 @@ func createConfig() *Config {
12591260
Logs: map[string]*Pipeline{
12601261
"default": {
12611262
Receivers: []string{"tcplog/nginx_app_protect"},
1262-
Processors: []string{"syslog/default", "logsgzip/default", "batch/default_logs"},
1263+
Processors: []string{"logsgzip/default", "batch/default_logs"},
12631264
Exporters: []string{"otlp/default"},
12641265
},
12651266
},

0 commit comments

Comments
 (0)