Skip to content

Commit

Permalink
Reduce load for stress test to avoid oom (elastic#112331)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrik-es authored Aug 29, 2024
1 parent aa57a15 commit 320ccbc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ protected Collection<? extends Plugin> getPlugins() {
}

public void testDataGeneratorStressTest() throws IOException {
// Let's generate 1000000 fields to test an extreme case (2 levels of objects + 1 leaf level with 100 fields per object).
// Let's generate 125000 fields to test an extreme case (2 levels of objects + 1 leaf level with 50 fields per object).
var testChildFieldGenerator = new DataSourceResponse.ChildFieldGenerator() {
private int generatedFields = 0;

@Override
public int generateChildFieldCount() {
return 100;
return 50;
}

@Override
Expand Down

0 comments on commit 320ccbc

Please sign in to comment.