0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-58102 Print currentOp results on failed assertion for {$all: false} test

This commit is contained in:
James Wahlin 2021-07-02 13:39:21 -04:00 committed by Evergreen Agent
parent 1345730e6c
commit de197ff4ea

View File

@ -350,7 +350,8 @@ function runCommonTests(conn, curOpSpec) {
"$currentOp should report 0 active connections but found:\n" + tojson(activeConns));
// Test that the currentOp command with {$all: false} returns only active connections.
assert.eq(adminDB.currentOp({$ownOps: false, $all: false, active: false}).inprog.length, 0);
const result = adminDB.currentOp({$ownOps: false, $all: false, active: false});
assert.eq(result.inprog.length, 0, result);
// Test that {idleConnections: true} returns inactive connections.
assert.gte(adminDB