Skip to content

Commit

Permalink
increase query time and add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Nov 14, 2023
1 parent 5d7bda9 commit bb34c4d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion testing/integration/logs_ingestion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down

0 comments on commit bb34c4d

Please sign in to comment.