Skip to content

[Backport 2.16] Fix IngestServiceTests.testBulkRequestExecutionWithFailures#14927

Merged
andrross merged 1 commit into2.16from
backport/backport-14918-to-2.16
Jul 23, 2024
Merged

[Backport 2.16] Fix IngestServiceTests.testBulkRequestExecutionWithFailures#14927
andrross merged 1 commit into2.16from
backport/backport-14918-to-2.16

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

Backport 087355f from #14918.

The test would previously fail if the randomness led to only a single
indexing request being included in the bulk payload. This change
guarantees multiple indexing requests in order to ensure the batch logic
kicks in.

Also replace some unneeded mocks with real classes.

Signed-off-by: Andrew Ross <andrross@amazon.com>
(cherry picked from commit 087355f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for 18dce26: SUCCESS

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.55%. Comparing base (1c28e4e) to head (18dce26).
Report is 7 commits behind head on 2.16.

Additional details and impacted files
@@             Coverage Diff              @@
##               2.16   #14927      +/-   ##
============================================
- Coverage     71.55%   71.55%   -0.01%     
- Complexity    62652    62658       +6     
============================================
  Files          5117     5117              
  Lines        293928   294052     +124     
  Branches      42833    42848      +15     
============================================
+ Hits         210319   210402      +83     
- Misses        65975    65995      +20     
- Partials      17634    17655      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrross andrross merged commit 8bb4290 into 2.16 Jul 23, 2024
@andrross andrross deleted the backport/backport-14918-to-2.16 branch July 23, 2024 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant