diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2017-11-06 14:40:07 -0500 |
---|---|---|
committer | Jack Mulrow <jack.mulrow@mongodb.com> | 2018-01-03 14:35:12 -0500 |
commit | 876f24aefbb0e0cf9fac30980b9ddea52d133fc9 (patch) | |
tree | 6c7a5ad225b3cfca3ced96ff3ca2fecc924e3fe9 /src/mongo/shell/shardingtest.js | |
parent | 60799be6648b497741d029c7e641402b2a8035eb (diff) | |
download | mongo-876f24aefbb0e0cf9fac30980b9ddea52d133fc9.tar.gz |
SERVER-31198 Run the concurrency suite with shard stepdowns
Diffstat (limited to 'src/mongo/shell/shardingtest.js')
-rw-r--r-- | src/mongo/shell/shardingtest.js | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/mongo/shell/shardingtest.js b/src/mongo/shell/shardingtest.js index ed6bb36b3d9..7342742d900 100644 --- a/src/mongo/shell/shardingtest.js +++ b/src/mongo/shell/shardingtest.js @@ -670,21 +670,13 @@ var ShardingTest = function(params) { this.s.adminCommand({enableSharding: dbName}); } - var result = this.s.adminCommand({shardcollection: c, key: key}); - if (!result.ok) { - printjson(result); - assert(false); - } + var result = assert.commandWorked(this.s.adminCommand({shardcollection: c, key: key})); if (split == false) { return; } - result = this.s.adminCommand({split: c, middle: split}); - if (!result.ok) { - printjson(result); - assert(false); - } + result = assert.commandWorked(this.s.adminCommand({split: c, middle: split})); if (move == false) { return; @@ -701,8 +693,7 @@ var ShardingTest = function(params) { sleep(5 * 1000); } - printjson(result); - assert(result.ok); + assert.commandWorked(result); }; /** |