summaryrefslogtreecommitdiff
path: root/jstests/sharding/remove2.js
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@10gen.com>2016-10-17 10:51:33 -0400
committerJames Wahlin <james.wahlin@10gen.com>2016-10-17 12:52:23 -0400
commitc66e3f224205ff00ec67b63a081fc7ce980e5855 (patch)
treec94148d435d1fdd98225e14c25251b9eac6d88fc /jstests/sharding/remove2.js
parent40c24abaa05450c612f00209b81d63d3c6acd35b (diff)
downloadmongo-c66e3f224205ff00ec67b63a081fc7ce980e5855.tar.gz
SERVER-26435 Refactor replsettest.js to reduce size
Diffstat (limited to 'jstests/sharding/remove2.js')
-rw-r--r--jstests/sharding/remove2.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/sharding/remove2.js b/jstests/sharding/remove2.js
index 9d212e8fbee..888df83e4ed 100644
--- a/jstests/sharding/remove2.js
+++ b/jstests/sharding/remove2.js
@@ -1,5 +1,7 @@
// Test that removing and re-adding shard works correctly.
+load("jstests/replsets/rslib.js");
+
seedString = function(replTest) {
members = replTest.getReplSetConfig().members.map(function(elem) {
return elem.host;
@@ -32,7 +34,7 @@ addShard = function(st, replTest) {
// transport error on first attempt is expected. Make sure second attempt goes through
assert.eq(true, st.adminCommand({addshard: seed}));
}
- ReplSetTest.awaitRSClientHosts(
+ awaitRSClientHosts(
new Mongo(st.s.host), replTest.getSecondaries(), {ok: true, secondary: true});
assert.soon(function() {