summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-03-30 16:06:38 -0400
committerEliot Horowitz <eliot@10gen.com>2012-03-30 16:12:27 -0400
commitaa161911ee890e16ba42a6d9ef4134019ccc15a6 (patch)
treec11a165d96a59357c5ef8ab7adf3af0f63d0df78 /jstests
parent8f5c537d6e51eeee5aa8e5e6bafe50cbb1ec7560 (diff)
downloadmongo-aa161911ee890e16ba42a6d9ef4134019ccc15a6.tar.gz
teste needed getLastError to be more robust
Diffstat (limited to 'jstests')
-rw-r--r--jstests/sharding/remove1.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/remove1.js b/jstests/sharding/remove1.js
index da375d7f1c9..db9fe5bcdfc 100644
--- a/jstests/sharding/remove1.js
+++ b/jstests/sharding/remove1.js
@@ -4,6 +4,7 @@ assert.eq( 2, s.config.shards.count() , "initial server count wrong" );
s.config.databases.insert({_id: 'local', partitioned: false, primary: 'shard0000'});
s.config.databases.insert({_id: 'needToMove', partitioned: false, primary: 'shard0000'});
+s.config.getLastError();
// first remove puts in draining mode, the second tells me a db needs to move, the third actually removes
assert( s.admin.runCommand( { removeshard: "shard0000" } ).ok , "failed to start draining shard" );