diff options
Diffstat (limited to 'jstests/noPassthroughWithMongod/currentop_includes_connid.js')
-rw-r--r-- | jstests/noPassthroughWithMongod/currentop_includes_connid.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/jstests/noPassthroughWithMongod/currentop_includes_connid.js b/jstests/noPassthroughWithMongod/currentop_includes_connid.js index b9b9ceeeb90..a58bba44479 100644 --- a/jstests/noPassthroughWithMongod/currentop_includes_connid.js +++ b/jstests/noPassthroughWithMongod/currentop_includes_connid.js @@ -1,12 +1,12 @@ (function() { - "use strict"; +"use strict"; - let res = assert.commandWorked(db.runCommand({whatsmyuri: 1})); - const myUri = res.you; +let res = assert.commandWorked(db.runCommand({whatsmyuri: 1})); +const myUri = res.you; - res = assert.commandWorked(db.adminCommand({currentOp: 1, client: myUri})); - const threadName = res.inprog[0].desc; - const connectionId = res.inprog[0].connectionId; +res = assert.commandWorked(db.adminCommand({currentOp: 1, client: myUri})); +const threadName = res.inprog[0].desc; +const connectionId = res.inprog[0].connectionId; - assert.eq("conn" + connectionId, threadName, tojson(res)); +assert.eq("conn" + connectionId, threadName, tojson(res)); })(); |