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 2
2
* Tests that mongod does not gossip cluster time metadata and operation time until at least one key
3
3
* is created on the
4
4
* config server.
5
+ *
6
+ * This test restarts shard replica sets, so it requires a persistent storage engine.
7
+ * @tags : [requires_persistence]
5
8
*/
6
-
7
9
( function ( ) {
8
10
"use strict" ;
9
11
67
69
st . rs0 . stopSet ( null /* signal */ , true /* forRestart */ ) ;
68
70
st . rs0 . startSet ( { restart : true } ) ;
69
71
72
+ priRSConn = st . rs0 . getPrimary ( ) . getDB ( "admin" ) ;
70
73
priRSConn . auth ( rUser . username , rUser . password ) ;
71
- const resNoKeys = priRSConn . runCommand ( { isMaster : 1 } ) ;
74
+ const resNoKeys = assert . commandWorked ( priRSConn . runCommand ( { isMaster : 1 } ) ) ;
72
75
73
76
assert . eq ( resNoKeys . hasOwnProperty ( "$clusterTime" ) , false ) ;
74
77
assert . eq ( resNoKeys . hasOwnProperty ( "operationTime" ) , false ) ;
You can’t perform that action at this time.
0 commit comments