From bb34c4d77aa3d09453af90a5ce5642863e75ccff Mon Sep 17 00:00:00 2001 From: Tiago Queiroz Date: Tue, 14 Nov 2023 17:42:46 +0100 Subject: [PATCH] increase query time and add debug --- testing/integration/logs_ingestion_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/testing/integration/logs_ingestion_test.go b/testing/integration/logs_ingestion_test.go index a78c28d42c2..7af96d93c65 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, )