diff options
Diffstat (limited to 'jstests/replsets/background_index.js')
-rw-r--r-- | jstests/replsets/background_index.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/jstests/replsets/background_index.js b/jstests/replsets/background_index.js index 9c92f8ca8f4..6d891a66a85 100644 --- a/jstests/replsets/background_index.js +++ b/jstests/replsets/background_index.js @@ -17,8 +17,8 @@ var coll = primary.getCollection("test.foo"); var adminDB = primary.getDB("admin"); - for (var i=0; i<100; i++) { - assert.writeOK(coll.insert({_id: i, x: i*3, str: "hello world"})); + for (var i = 0; i < 100; i++) { + assert.writeOK(coll.insert({_id: i, x: i * 3, str: "hello world"})); } // Add a background index. @@ -26,9 +26,8 @@ // Rename the collection. assert.commandWorked( - adminDB.runCommand({renameCollection: "test.foo", to: "bar.test", dropTarget: true}), - "Call to renameCollection failed." - ); + adminDB.runCommand({renameCollection: "test.foo", to: "bar.test", dropTarget: true}), + "Call to renameCollection failed."); // Await replication. rst.awaitReplication(); |