Skip to content

Commit 1d59418

Browse files
committed
Fixed Test failure on Windows
1 parent 736e446 commit 1d59418

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

receiver/windowseventlogreceiver/receiver_windows_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
"golang.org/x/sys/windows/registry"
2626
"golang.org/x/sys/windows/svc/eventlog"
2727

28+
"github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal/consumerretry"
2829
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/adapter"
2930
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/operator"
3031
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/operator/input/windows"
@@ -337,7 +338,8 @@ func TestExcludeProvider(t *testing.T) {
337338
func createTestConfig() *WindowsLogConfig {
338339
return &WindowsLogConfig{
339340
BaseConfig: adapter.BaseConfig{
340-
Operators: []operator.Config{},
341+
Operators: []operator.Config{},
342+
RetryOnFailure: consumerretry.NewDefaultConfig(),
341343
},
342344
InputConfig: func() windows.Config {
343345
c := windows.NewConfig()
@@ -358,7 +360,8 @@ func createTestConfigWithQuery() *WindowsLogConfig {
358360
`
359361
return &WindowsLogConfig{
360362
BaseConfig: adapter.BaseConfig{
361-
Operators: []operator.Config{},
363+
Operators: []operator.Config{},
364+
RetryOnFailure: consumerretry.NewDefaultConfig(),
362365
},
363366
InputConfig: func() windows.Config {
364367
c := windows.NewConfig()

0 commit comments

Comments
 (0)