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 fa973c9 commit cea8aeeCopy full SHA for cea8aee
jstests/core/text_index_limits.js renamed to jstests/replsets/text_index_limits.js
@@ -8,10 +8,16 @@
8
(function() {
9
"use strict";
10
11
+const replTest = new ReplSetTest({nodes: 3});
12
+replTest.startSet();
13
+replTest.initiate();
14
+
15
+const db = replTest.getPrimary().getDB("test");
16
var t = db.text_index_limits;
17
t.drop();
18
19
assert.commandWorked(t.createIndex({comments: "text"}));
20
+replTest.waitForAllIndexBuildsToFinish(t.getDB(), t.getName());
21
22
// 1. Test number of unique terms exceeds 400,000
23
let commentsWithALotOfUniqueWords = "";
@@ -42,6 +48,9 @@ for (let ch1 = 97; ch1 < 123; ch1++) {
42
48
}
43
49
44
50
51
45
52
assert.commandWorked(db.runCommand(
46
53
{insert: t.getName(), documents: [{_id: 2, comments: commentsWithWordsOfLargeSize}]}));
47
-}());
54
55
+replTest.stopSet();
56
+})();
0 commit comments