summaryrefslogtreecommitdiff
path: root/jstests/auth/copyauth.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/copyauth.js')
-rw-r--r--jstests/auth/copyauth.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/auth/copyauth.js b/jstests/auth/copyauth.js
index 2d3ee534666..a0e0b92c51e 100644
--- a/jstests/auth/copyauth.js
+++ b/jstests/auth/copyauth.js
@@ -60,7 +60,7 @@ function ClusterSpawnHelper(clusterType, startWithAuth) {
else {
replSetTest.awaitReplication();
}
- this.conn = replSetTest.getMaster();
+ this.conn = replSetTest.getPrimary();
this.connString = replSetTest.getURL();
}
else {