Files
mongo/jstests/gle/core/error3.js
2016-03-09 12:18:14 -05:00

6 lines
149 B
JavaScript

db.runCommand("forceerror");
assert.eq("forced error", db.getLastError());
db.runCommand("switchtoclienterrors");
assert.isnull(db.getLastError());