Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimalekseev committed Oct 5, 2023
1 parent c27544d commit ca505b6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pipeline/pipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestInUnparsableMessages(t *testing.T) {
sourceID := pipeline.SourceID(3<<16 + int(10))

t.Run(name, func(t *testing.T) {
pipe := pipeline.New("test_pipeline", pipelineSettings, prometheus.NewRegistry(), zap.NewNop().Sugar())
pipe := pipeline.New("test_pipeline", pipelineSettings, prometheus.NewRegistry(), zap.NewNop())

pipe.SetInput(getFakeInputInfo())

Expand Down Expand Up @@ -113,7 +113,7 @@ func TestInInvalidMessages(t *testing.T) {

for _, tCase := range cases {
t.Run(tCase.name, func(t *testing.T) {
pipe := pipeline.New("test_pipeline", tCase.pipelineSettings, prometheus.NewRegistry(), zap.NewNop().Sugar())
pipe := pipeline.New("test_pipeline", tCase.pipelineSettings, prometheus.NewRegistry(), zap.NewNop())

pipe.SetInput(getFakeInputInfo())

Expand Down
2 changes: 1 addition & 1 deletion pipeline/pipeline_whitebox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestPipeline_streamEvent(t *testing.T) {
Capacity: 5,
Decoder: "json",
}
p := New("test", settings, prometheus.NewRegistry(), zap.NewNop().Sugar())
p := New("test", settings, prometheus.NewRegistry(), zap.NewNop())

streamID := StreamID(123123)
procs := int32(7)
Expand Down
2 changes: 1 addition & 1 deletion plugin/output/file/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func newPipeline(t *testing.T, configOutput *Config) *pipeline.Pipeline {
Decoder: "json",
}

p := pipeline.New("test_pipeline", settings, prometheus.NewRegistry(), zap.NewNop().Sugar())
p := pipeline.New("test_pipeline", settings, prometheus.NewRegistry(), zap.NewNop())
p.DisableParallelism()
p.EnableEventLog()

Expand Down
2 changes: 1 addition & 1 deletion plugin/output/s3/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ func newPipeline(t *testing.T, configOutput *Config, objStoreF objStoreFactory)
Decoder: "json",
}

p := pipeline.New("test_pipeline", settings, prometheus.NewRegistry(), zap.NewNop().Sugar())
p := pipeline.New("test_pipeline", settings, prometheus.NewRegistry(), zap.NewNop())
p.DisableParallelism()
p.EnableEventLog()

Expand Down
2 changes: 1 addition & 1 deletion test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func NewPipeline(actions []*pipeline.ActionPluginStaticInfo, pipelineOpts ...str
pName += strconv.Itoa(rand.Int())
}

p := pipeline.New(pName, settings, prometheus.NewRegistry(), zap.NewNop().Sugar())
p := pipeline.New(pName, settings, prometheus.NewRegistry(), zap.NewNop())
if !parallel {
p.DisableParallelism()
}
Expand Down

0 comments on commit ca505b6

Please sign in to comment.