diff options
Diffstat (limited to 'jstests/noPassthrough/indexbg1.js')
-rw-r--r-- | jstests/noPassthrough/indexbg1.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/jstests/noPassthrough/indexbg1.js b/jstests/noPassthrough/indexbg1.js index ae26b4a0494..d8a9c8e56a0 100644 --- a/jstests/noPassthrough/indexbg1.js +++ b/jstests/noPassthrough/indexbg1.js @@ -2,9 +2,6 @@ (function() { "use strict"; - - load("jstests/noPassthrough/libs/index_build.js"); - const conn = MongoRunner.runMongod({smallfiles: "", nojournal: ""}); assert.neq(null, conn, "mongod failed to start."); var db = conn.getDB("test"); @@ -60,7 +57,7 @@ // wait for indexing to start print("wait for indexing to start"); assert.soon(function() { - return getIndexBuildOpId(db) != -1; + return 2 === t.getIndexes().length; }, "no index created", 30000, 50); print("started."); sleep(1000); // there is a race between when the index build shows up in curop and |