Skip to content

Commit c799c6c

Browse files
committed
SERVER-34694 mongod_returns_no_cluster_time_without_keys.js should not run with inMemory SE
1 parent ae01d46 commit c799c6c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jstests/sharding/mongod_returns_no_cluster_time_without_keys.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
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

@@ -67,8 +69,9 @@
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);

0 commit comments

Comments
 (0)