Skip to content

Commit

Permalink
[FlakyTest] TestFileWatcher/does_not_emit_events_for_empty_files/emit…
Browse files Browse the repository at this point in the history
…s_a_create_event_once_something_is_written_to_the_empty_file (#41848)

* Fixes flaky test TestFileWatcher
  • Loading branch information
khushijain21 authored Dec 2, 2024
1 parent ec2f4a8 commit 1660894
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions filebeat/input/filestream/fswatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import (
)

func TestFileWatcher(t *testing.T) {
t.Skip("Flaky test: https://github.com/elastic/beats/issues/41209")
dir := t.TempDir()
paths := []string{filepath.Join(dir, "*.log")}
cfgStr := `
Expand Down Expand Up @@ -261,10 +260,10 @@ scanner:
paths := []string{filepath.Join(dir, "*.log")}
cfgStr := `
scanner:
check_interval: 10ms
check_interval: 50ms
`

ctx, cancel := context.WithTimeout(context.Background(), 100*time.Millisecond)
ctx, cancel := context.WithTimeout(context.Background(), 1000*time.Millisecond)
defer cancel()

logp.DevelopmentSetup(logp.ToObserverOutput())
Expand Down

0 comments on commit 1660894

Please sign in to comment.