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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// wait 5s (default) for Elasticsearch to index, so results are consistent
|
// force elastic to refresh indexes to get new batch data
|
||||||
time.Sleep(time.Second * 5)
|
ctx := context.Background()
|
||||||
|
_, err = e.esClient.Refresh().Do(ctx)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue