From fa5aff14111de4fe23ae0094c597673cc4a48d3b Mon Sep 17 00:00:00 2001 From: Ali Mir Date: Wed, 16 Sep 2020 19:00:02 +0000 Subject: SERVER-50651 Replace occurrences of isMaster command with hello in misc jstests --- jstests/sslSpecial/ssl_ecdsa_cert.js | 2 +- jstests/sslSpecial/x509_cluster_auth_rollover.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'jstests/sslSpecial') diff --git a/jstests/sslSpecial/ssl_ecdsa_cert.js b/jstests/sslSpecial/ssl_ecdsa_cert.js index 331844162dc..25d58627220 100644 --- a/jstests/sslSpecial/ssl_ecdsa_cert.js +++ b/jstests/sslSpecial/ssl_ecdsa_cert.js @@ -31,7 +31,7 @@ const test = () => { '--port', mongod.port, '--eval', - 'db.isMaster()'), + 'db.hello()'), "mongo did not initialize properly"); // Add an X509 user diff --git a/jstests/sslSpecial/x509_cluster_auth_rollover.js b/jstests/sslSpecial/x509_cluster_auth_rollover.js index 8aa50d50902..b9d51c1ced3 100644 --- a/jstests/sslSpecial/x509_cluster_auth_rollover.js +++ b/jstests/sslSpecial/x509_cluster_auth_rollover.js @@ -56,7 +56,7 @@ const rolloverConfig = function(newConfig) { assert.soon(() => { let primary = rst.getPrimary(); - assert.commandWorked(primary.getDB("admin").runCommand({isMaster: 1})); + assert.commandWorked(primary.getDB("admin").runCommand({hello: 1})); assert.commandWorked(primary.getDB('test').a.insert({a: 1, str: 'TESTTESTTEST'})); // Start a shell that connects to the server with the current CA/cert configuration -- cgit v1.2.1