summaryrefslogtreecommitdiff
path: root/jstests/sharding/printShardingStatus.js
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2015-09-17 03:30:38 +0000
committerKevin Pulo <kevin.pulo@mongodb.com>2015-09-18 10:34:23 -0400
commitc0db389c3f72280d9c82202e9ee6fc70e7a17027 (patch)
tree85de921bff197ee127bb1abbde5b5ef7fd5d0873 /jstests/sharding/printShardingStatus.js
parent0e99282e10daa663c0744a5462348c497ee9cad2 (diff)
downloadmongo-c0db389c3f72280d9c82202e9ee6fc70e7a17027.tar.gz
SERVER-19368: Move print.captureAllOutput from printShardingStatus jstest to utils.js
Diffstat (limited to 'jstests/sharding/printShardingStatus.js')
-rw-r--r--jstests/sharding/printShardingStatus.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/jstests/sharding/printShardingStatus.js b/jstests/sharding/printShardingStatus.js
index 50001585a1d..4d8e8537326 100644
--- a/jstests/sharding/printShardingStatus.js
+++ b/jstests/sharding/printShardingStatus.js
@@ -6,20 +6,6 @@
(function () {
-// SERVER-19368 to move this into utils.js
-// jstests/auth/show_log_auth.js does something similar and could also benefit from this
-print.captureAllOutput = function (fn, args) {
- var res = {};
- res.output = [];
- var __orig_print = print;
- print = function () {
- Array.prototype.push.apply(res.output, Array.prototype.slice.call(arguments).join(" ").split("\n"));
- };
- res.result = fn.apply(undefined, args);
- print = __orig_print;
- return res;
-}
-
var st = new ShardingTest({ shards: 1, mongos: 2, config: 1, other: { smallfiles: true } });
var mongos = st.s0;