Skip to content

Commit

Permalink
Fix possible infinite loop next page contains no items (purged elsewh…
Browse files Browse the repository at this point in the history
…ere)
  • Loading branch information
elsand committed Nov 1, 2024
1 parent 257b493 commit e74675d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/k6/common/sentinel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default function () {
expectStatusFor(r).to.equal(200);
expect(r, 'response').to.have.validJsonBody();
let response = r.json();
hasNextPage = false;
if (response.items && response.items.length > 0) {
response.items.forEach((item) => {
dialogIdsToPurge.push(item.id);
Expand Down

0 comments on commit e74675d

Please sign in to comment.