Skip to content

Commit

Permalink
fix double import
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Jun 17, 2024
1 parent 0725d66 commit eef16ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions filebeat/input/filestream/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import (
"github.com/stretchr/testify/require"

loginp "github.com/elastic/beats/v7/filebeat/input/filestream/internal/input-logfile"
input "github.com/elastic/beats/v7/filebeat/input/v2"
v2 "github.com/elastic/beats/v7/filebeat/input/v2"
"github.com/elastic/beats/v7/libbeat/beat"
"github.com/elastic/beats/v7/libbeat/common/acker"
Expand Down Expand Up @@ -129,7 +128,7 @@ func (e *inputTestingEnvironment) startInput(ctx context.Context, inp v2.Input)
go func(wg *sync.WaitGroup, grp *unison.TaskGroup) {
defer wg.Done()
defer grp.Stop()

Check failure on line 130 in filebeat/input/filestream/environment_test.go

View workflow job for this annotation

GitHub Actions / lint (linux)

Error return value of `grp.Stop` is not checked (errcheck)
inputCtx := input.Context{Logger: logp.L(), Cancelation: ctx, ID: "fake-ID"}
inputCtx := v2.Context{Logger: logp.L(), Cancelation: ctx, ID: "fake-ID"}
inp.Run(inputCtx, e.pipeline)

Check failure on line 132 in filebeat/input/filestream/environment_test.go

View workflow job for this annotation

GitHub Actions / lint (linux)

Error return value of `inp.Run` is not checked (errcheck)
}(&e.wg, &e.grp)
}
Expand Down

0 comments on commit eef16ea

Please sign in to comment.