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:
parent
1345730e6c
commit
de197ff4ea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user