10000 add more output to assertion · arangodb/arangodb@b5f3894 · GitHub
[go: up one dir, main page]

Skip to content

Commit b5f3894

Browse files
committed
add more output to assertion
1 parent 01d73e7 commit b5f3894

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/js/server/shell/shell-skiplist-correctness.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ function SkipListCorrSuite() {
309309
},
310310

311311
testFillIndexFailure:function() {
312-
var arr = [];
313-
for(var i = 0; i < 30000; i++) {
312+
let arr = [];
313+
for (let i = 0; i < 30000; i++) {
314314
arr.push({_key: "" + i, v: i >= 29900 ? "peng" : i });
315315
}
316316
coll.insert(arr);
@@ -324,9 +324,11 @@ function SkipListCorrSuite() {
324324
} catch (e) {
325325
assertEqual(internal.errors.ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED.code, e.errorNum);
326326
}
327+
328+
let idx = coll.getIndexes();
327329

328330
// should not have created an index
329-
assertEqual(coll.getIndexes().length, 1);
331+
assertEqual(idx.length, 1, idx);
330332
}
331333
};
332334
}

0 commit comments

Comments
 (0)
0