summaryrefslogtreecommitdiff
path: root/jstests/tool/tool_replset.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/tool/tool_replset.js')
-rw-r--r--jstests/tool/tool_replset.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/jstests/tool/tool_replset.js b/jstests/tool/tool_replset.js
index efe55b46605..3b0338a02d4 100644
--- a/jstests/tool/tool_replset.js
+++ b/jstests/tool/tool_replset.js
@@ -67,17 +67,8 @@
var x = master.getDB("foo").getCollection("bar").count();
assert.eq(x, 100, "mongoimport should have successfully imported the collection");
- var doc = {
- _id: 5,
- x: 17
- };
- var oplogEntry = {
- ts: new Timestamp(),
- "op": "i",
- "ns": "foo.bar",
- "o": doc,
- "v": NumberInt(2)
- };
+ var doc = {_id: 5, x: 17};
+ var oplogEntry = {ts: new Timestamp(), "op": "i", "ns": "foo.bar", "o": doc, "v": NumberInt(2)};
assert.writeOK(master.getDB("local").oplog.rs.insert(oplogEntry));
assert.eq(100,