10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01d73e7 commit b5f3894Copy full SHA for b5f3894
tests/js/server/shell/shell-skiplist-correctness.js
@@ -309,8 +309,8 @@ function SkipListCorrSuite() {
309
},
310
311
testFillIndexFailure:function() {
312
- var arr = [];
313
- for(var i = 0; i < 30000; i++) {
+ let arr = [];
+ for (let i = 0; i < 30000; i++) {
314
arr.push({_key: "" + i, v: i >= 29900 ? "peng" : i });
315
}
316
coll.insert(arr);
@@ -324,9 +324,11 @@ function SkipListCorrSuite() {
324
} catch (e) {
325
assertEqual(internal.errors.ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED.code, e.errorNum);
326
327
+
328
+ let idx = coll.getIndexes();
329
330
// should not have created an index
- assertEqual(coll.getIndexes().length, 1);
331
+ assertEqual(idx.length, 1, idx);
332
333
};
334
0 commit comments