File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 22 * Tests that mongod does not gossip cluster time metadata and operation time until at least one key
33 * is created on the
44 * config server.
5+ *
6+ * This test restarts shard replica sets, so it requires a persistent storage engine.
7+ * @tags : [requires_persistence]
58 */
6-
79( function ( ) {
810 "use strict" ;
911
6769 st . rs0 . stopSet ( null /* signal */ , true /* forRestart */ ) ;
6870 st . rs0 . startSet ( { restart : true } ) ;
6971
72+ priRSConn = st . rs0 . getPrimary ( ) . getDB ( "admin" ) ;
7073 priRSConn . auth ( rUser . username , rUser . password ) ;
71- const resNoKeys = priRSConn . runCommand ( { isMaster : 1 } ) ;
74+ const resNoKeys = assert . commandWorked ( priRSConn . runCommand ( { isMaster : 1 } ) ) ;
7275
7376 assert . eq ( resNoKeys . hasOwnProperty ( "$clusterTime" ) , false ) ;
7477 assert . eq ( resNoKeys . hasOwnProperty ( "operationTime" ) , false ) ;
You can’t perform that action at this time.
0 commit comments