--- FAIL: TestFileWatchNewDeleteModified (0.00s)
--- FAIL: TestFileWatchNewDeleteModified/two_modified_files (0.00s)
fswatch_test.go:210:
Error Trace: fswatch_test.go:210
Error: Not equal:
expected: input_logfile.FSEvent{NewPath:"path1", OldPath:"path1", Op:0x2, Info:filestream.testFileInfo{path:"path1", size:10, time:time.Time{wall:0xbfd5f554f5d9c463, ext:5008327320, loc:(*time.Location)(0xf80b40)}}}
actual : input_logfile.FSEvent{NewPath:"path2", OldPath:"path2", Op:0x2, Info:filestream.testFileInfo{path:"path2", size:10, time:time.Time{wall:0xbfd5f554f5d9c463, ext:5008327320, loc:(*time.Location)(0xf80b40)}}}
Diff:
--- Expected
+++ Actual
@@ -1,7 +1,7 @@
(input_logfile.FSEvent) {
- NewPath: (string) (len=5) "path1",
- OldPath: (string) (len=5) "path1",
+ NewPath: (string) (len=5) "path2",
+ OldPath: (string) (len=5) "path2",
Op: (input_logfile.Operation) 2,
Info: (filestream.testFileInfo) {
- path: (string) (len=5) "path1",
+ path: (string) (len=5) "path2",
size: (int64) 10,
Test: TestFileWatchNewDeleteModified/two_modified_files
fswatch_test.go:210:
Error Trace: fswatch_test.go:210
Error: Not equal:
expected: input_logfile.FSEvent{NewPath:"path2", OldPath:"path2", Op:0x2, Info:filestream.testFileInfo{path:"path2", size:10, time:time.Time{wall:0xbfd5f554f5d9c463, ext:5008327320, loc:(*time.Location)(0xf80b40)}}}
actual : input_logfile.FSEvent{NewPath:"path1", OldPath:"path1", Op:0x2, Info:filestream.testFileInfo{path:"path1", size:10, time:time.Time{wall:0xbfd5f554f5d9c463, ext:5008327320, loc:(*time.Location)(0xf80b40)}}}
Diff:
--- Expected
+++ Actual
@@ -1,7 +1,7 @@
(input_logfile.FSEvent) {
- NewPath: (string) (len=5) "path2",
- OldPath: (string) (len=5) "path2",
+ NewPath: (string) (len=5) "path1",
+ OldPath: (string) (len=5) "path1",
Op: (input_logfile.Operation) 2,
Info: (filestream.testFileInfo) {
- path: (string) (len=5) "path2",
+ path: (string) (len=5) "path1",
size: (int64) 10,
Test: TestFileWatchNewDeleteModified/two_modified_files
FAIL
FAIL github.com/elastic/beats/v7/filebeat/input/filestream 0.018s
Flaky Test
TestFileWatchNewDeleteModified,TestFileScannerwhile go test -count=1 ./filebeat/input/filestream/...; do true; done.Stack Trace