Skip to content

Commit

Permalink
reverts lines back to 1M, trying by increasing timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
dchappa committed Oct 23, 2023
1 parent 4228271 commit 500298f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/inputs/logfile/logfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func createWriteRead(t *testing.T, prefix string, logFile *LogFile, done chan bo
defer close(evts)
// Choose a large enough number of lines so that even high-spec hosts will not
// complete receiving logEvents before the 2nd createWriteRead() goroutine begins.
const numLines int = 100000
const numLines int = 1000000
const msg string = "this is the best log line ever written to a file"
writeLines(t, file, numLines, msg)
file.Close()
Expand All @@ -453,7 +453,7 @@ func createWriteRead(t *testing.T, prefix string, logFile *LogFile, done chan bo
select {
case <-done2:
t.Log("Child completed before timeout (as expected)")
case <-time.After(time.Second * 10):
case <-time.After(time.Second * 20):
require.Fail(t, "timeout waiting for child")
}
t.Log("Verify 1st temp file was auto deleted.")
Expand Down

0 comments on commit 500298f

Please sign in to comment.