Skip to content

Commit

Permalink
Fixed flaky BWC test. (opensearch-project#4446)
Browse files Browse the repository at this point in the history
Signed-off-by: Nils Bandener <[email protected]>
  • Loading branch information
nibix authored Jun 12, 2024
1 parent 7c47b41 commit c1872b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ private void ingestData(String index) throws IOException {
ObjectMapper objectMapper = new ObjectMapper();
int numberOfRequests = Randomness.get().nextInt(10);
while (numberOfRequests-- > 0) {
for (int i = 0; i < Randomness.get().nextInt(100); i++) {
int numberOfDocuments = Randomness.get().nextInt(100) + 1;
for (int i = 0; i < numberOfDocuments; i++) {
Map<String, Map<String, String>> indexRequest = new HashMap<>();
indexRequest.put("index", new HashMap<>() {
{
Expand Down

0 comments on commit c1872b6

Please sign in to comment.