Files
mongo/jstests/aggregation/bugs/server15810.js
2016-03-09 12:18:14 -05:00

5 lines
244 B
JavaScript

// 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