test: force elasticsearch to index batch data (#11153)
This commit is contained in:
parent
deb0c6e207
commit
78d92622da
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue