We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d3620d commit 3941208Copy full SHA for 3941208
filewatcher/filewatcher_test.go
@@ -23,6 +23,7 @@ import (
23
"testing"
24
"time"
25
26
+ "github.com/elastic/elastic-agent-libs/logp/logptest"
27
"github.com/stretchr/testify/assert"
28
)
29
@@ -44,7 +45,7 @@ func TestFileWatcher(t *testing.T) {
44
45
filenames = append(filenames, filename)
46
}
47
- watcher := New(filenames...)
48
+ watcher := New(logptest.NewTestingLogger(t, ""), filenames...)
49
50
// Modification timestamps usually have second precision,
51
// we wait to make sure we're not in the second the files were created
0 commit comments