summaryrefslogtreecommitdiff
path: root/jstests/replsets/pipelineout.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/pipelineout.js')
-rw-r--r--jstests/replsets/pipelineout.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/replsets/pipelineout.js b/jstests/replsets/pipelineout.js
index bb86f98c4e9..91e07d9a457 100644
--- a/jstests/replsets/pipelineout.js
+++ b/jstests/replsets/pipelineout.js
@@ -12,21 +12,21 @@ var secondary = replTest.liveNodes.slaves[0].getDB(name);
// populate the collection
for (i = 0; i < 5; i++) {
- primary.in.insert({x: i});
+ primary.in .insert({x: i});
}
replTest.awaitReplication();
// make sure $out cannot be run on a secondary
assert.throws(function() {
- secondary.in.aggregate({$out: "out"}).itcount;
+ secondary.in .aggregate({$out: "out"}).itcount;
});
// even if slaveOk
secondary.setSlaveOk();
assert.throws(function() {
- secondary.in.aggregate({$out: "out"}).itcount;
+ secondary.in .aggregate({$out: "out"}).itcount;
});
// run one and check for proper replication
-primary.in.aggregate({$out: "out"}).itcount;
+primary.in .aggregate({$out: "out"}).itcount;
replTest.awaitReplication();
assert.eq(primary.out.find().sort({x: 1}).toArray(), secondary.out.find().sort({x: 1}).toArray());