Skip to content

Commit d6f2fa8

Browse files
committed
Fix possible infinite loop next page contains no items (purged elsewhere)
1 parent 257b493 commit d6f2fa8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/k6/common/sentinel.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ export default function () {
2020
response.items.forEach((item) => {
2121
dialogIdsToPurge.push(item.id);
2222
});
23-
24-
hasNextPage = response.hasNextPage;
2523
continuationToken = "&continuationToken=" + response.continuationToken;
2624
}
25+
hasNextPage = response.hasNextPage;
2726
} while (hasNextPage);
2827

2928
if (dialogIdsToPurge.length > 0) {

0 commit comments

Comments
 (0)