diff options
Diffstat (limited to 'jstests/noPassthrough/shell_gossip_cluster_time.js')
-rw-r--r-- | jstests/noPassthrough/shell_gossip_cluster_time.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/jstests/noPassthrough/shell_gossip_cluster_time.js b/jstests/noPassthrough/shell_gossip_cluster_time.js index dc46a1173a7..c9a47ce6ce7 100644 --- a/jstests/noPassthrough/shell_gossip_cluster_time.js +++ b/jstests/noPassthrough/shell_gossip_cluster_time.js @@ -41,15 +41,6 @@ function testCommandGossipedWithClusterTime(func, expectedClusterTime) { throw new Error("Mongo.prototype.runCommand() was never called: " + func.toString()); } - let cmdName = Object.keys(cmdObjSeen)[0]; - - // If the command is in a wrapped form, then we look for the actual command object inside - // the query/$query object. - if (cmdName === "query" || cmdName === "$query") { - cmdObjSeen = cmdObjSeen[cmdName]; - cmdName = Object.keys(cmdObjSeen)[0]; - } - if (expectedClusterTime === undefined) { assert(!cmdObjSeen.hasOwnProperty("$clusterTime"), "Expected operation " + tojson(cmdObjSeen) + |