Skip to content

filestream flaky tests #21489

@jsoriano

Description

@jsoriano

Flaky Test

Stack Trace

--- 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

Metadata

Metadata

Assignees

Labels

Team:Services(Deprecated) Label for the former Integrations-Services teamflaky-testUnstable or unreliable test cases.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions