mongo/jstests/aggregation/parsing/collectionless_agg_does_not...

5 lines
243 B
JavaScript

// SERVER-15810: Server crash when running a poorly formed command
let res = db.runCommand({aggregate: 1, pipeline: []});
assert.commandFailed(res); // command must fail
// TODO(geert): assert(!('code' in res)); // but must not cause massert