summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs/server15810.js
blob: 88ef3b7ca38e200e1ded1695b6b1c3918bbbbb8e (plain)
1
2
3
4
// SERVER-15810: Server crash when running a poorly formed command
var res = db.runCommand({aggregate: 1, pipeline: []});
assert.commandFailed(res);  // command must fail
// TODO(geert): assert(!('code' in res));  // but must not cause massert