Skip to content

Commit

Permalink
Check if first call is already zero documents (#1788)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm authored Apr 18, 2024
1 parent 5a0f5b4 commit ed1fab3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/testrunner/runners/system/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,10 @@ func (r *runner) deleteOldDocumentsDataStreamAndWait(ctx context.Context, dataSt
if err != nil {
return err
}
// First call already reports zero documents
if startHits.size() == 0 {
return nil
}
cleared, err := wait.UntilTrue(ctx, func(ctx context.Context) (bool, error) {
hits, err := r.getDocs(ctx, dataStream)
if err != nil {
Expand Down

0 comments on commit ed1fab3

Please sign in to comment.