Skip to content

Commit 5a97530

Browse files
committed
relax timing
1 parent 18238b2 commit 5a97530

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/acquisition/modules/file/file_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ force_inotify: true`, testPattern),
353353
require.NoError(t, err)
354354
err = f.Close()
355355
require.NoError(t, err)
356-
time.Sleep(1 * time.Second)
356+
time.Sleep(5 * time.Second)
357357
err = os.Chmod(f.Name(), 0o000)
358358
require.NoError(t, err)
359359
},
@@ -452,7 +452,7 @@ force_inotify: true`, testPattern),
452452

453453
require.Eventually(t, func() bool {
454454
return actualLines.Load() == int64(tc.expectedLines)
455-
}, 5*time.Second, 100*time.Millisecond)
455+
}, 10*time.Second, 100*time.Millisecond)
456456

457457
os.Remove(streamLogFile)
458458

0 commit comments

Comments
 (0)