diff --git a/testing/integration/logs_ingestion_test.go b/testing/integration/logs_ingestion_test.go index a78c28d42c2..e12acf1adde 100644 --- a/testing/integration/logs_ingestion_test.go +++ b/testing/integration/logs_ingestion_test.go @@ -195,14 +195,21 @@ func testMonitoringLogsAreShipped( func findESDocs(t *testing.T, findFn func() (estools.Documents, error)) estools.Documents { var docs estools.Documents + start := time.Now() + defer func() { + fmt.Println(">>>>>>>>>>>>>>>>>>>> Took", time.Now().Sub(start)) + }() + count := 0 require.Eventually( t, func() bool { + count++ + fmt.Println(">>>>>>>>>>>>>>>>>>>> Iteration ", count) var err error docs, err = findFn() return err == nil }, - 3*time.Minute, + 8*time.Minute, 15*time.Second, )