Skip to content

Commit d1cf020

Browse files
authored
track the progress on the index buildup (#21784)
1 parent d7ac239 commit d1cf020

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/js/client/shell/shell-index-visibility-nocov-fp.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ function IndexSuite() {
9696

9797
let seenProgress = false;
9898
count = 0;
99+
let progress_flow = [];
99100
while (true) {
100101
idxs = arango.GET(`/_api/index?collection=${cn}&withHidden=true`);
101102
assertTrue(idxs.hasOwnProperty("indexes"), idxs);
@@ -104,8 +105,9 @@ function IndexSuite() {
104105
let idx = idxs[1];
105106
assertEqual(idx.name, "progress", idx); // Check we have the right one!
106107
if (idx.hasOwnProperty("progress")) {
107-
assertTrue(idx.progress >= progress, {idx, progress});
108-
assertTrue(idx.isBuilding, idx);
108+
progress_flow.push(idx.progress);
109+
assertTrue(idx.progress >= progress, {idx, progress, progress_flow});
110+
assertTrue(idx.isBuilding, { idx, progress_flow});
109111
progress = idx.progress;
110112
if (progress > 0 && !seenProgress) {
111113
// Only release index building once we have seen at least

0 commit comments

Comments
 (0)