Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Jun 3, 2024
1 parent e8b7311 commit c7a4948
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions filebeat/tests/integration/filebeat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,11 @@ func TestFilebeatRunsAndLogsJSONToFile(t *testing.T) {

var f *os.File
var err error
// We have to wait until the file is created, so we wait
// until `os.Open` returns no error.
require.Eventuallyf(t, func() bool {
f, err = os.Open(filebeatLogFile)
if err != nil {
return false
}
return true
return err == nil
}, 10*time.Second, time.Millisecond, "could not read log file '%s'", filebeatLogFile)
defer f.Close()

Expand Down

0 comments on commit c7a4948

Please sign in to comment.