diff options
Diffstat (limited to 'jstests/noPassthrough/after_cluster_time.js')
-rw-r--r-- | jstests/noPassthrough/after_cluster_time.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/jstests/noPassthrough/after_cluster_time.js b/jstests/noPassthrough/after_cluster_time.js index ae1ef3b9e8d..718a9633a0c 100644 --- a/jstests/noPassthrough/after_cluster_time.js +++ b/jstests/noPassthrough/after_cluster_time.js @@ -30,15 +30,13 @@ ErrorCodes.InvalidOptions, "expected afterClusterTime read with null timestamp to fail on standalone mongod"); - // Standalones don't store clusterTime, so any non-zero afterClusterTime read value will be - // rejected for being ahead of the server's uninitialized internal clusterTime. - assert.commandFailedWithCode( - testDB.runCommand({ - find: "after_cluster_time", - readConcern: {level: "majority", afterClusterTime: Timestamp(0, 1)} - }), - ErrorCodes.InvalidOptions, - "expected afterClusterTime read with non-zero timestamp to fail on standalone mongod"); + // Standalones don't support any operations with clusterTime. + assert.commandFailedWithCode(testDB.runCommand({ + find: "after_cluster_time", + readConcern: {level: "majority", afterClusterTime: Timestamp(0, 1)} + }), + ErrorCodes.IllegalOperation, + "expected afterClusterTime read to fail on standalone mongod"); MongoRunner.stopMongod(standalone); var rst = new ReplSetTest({nodes: 1}); |