Skip to content

Commit 3941208

Browse files
committed
lint: update methods
1 parent 5d3620d commit 3941208

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

filewatcher/filewatcher_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"testing"
2424
"time"
2525

26+
"github.com/elastic/elastic-agent-libs/logp/logptest"
2627
"github.com/stretchr/testify/assert"
2728
)
2829

@@ -44,7 +45,7 @@ func TestFileWatcher(t *testing.T) {
4445
filenames = append(filenames, filename)
4546
}
4647

47-
watcher := New(filenames...)
48+
watcher := New(logptest.NewTestingLogger(t, ""), filenames...)
4849

4950
// Modification timestamps usually have second precision,
5051
// we wait to make sure we're not in the second the files were created

0 commit comments

Comments
 (0)