Skip to content

Commit

Permalink
test: force elasticsearch to index batch data (#11153)
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj authored May 19, 2022
1 parent deb0c6e commit 78d9262
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,13 @@ func setupIntegrationTest() error {
return err
}

// wait 5s (default) for Elasticsearch to index, so results are consistent
time.Sleep(time.Second * 5)
// force elastic to refresh indexes to get new batch data
ctx := context.Background()
_, err = e.esClient.Refresh().Do(ctx)
if err != nil {
return err
}

return nil
}

Expand Down

0 comments on commit 78d9262

Please sign in to comment.