0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/jstests/error3.js
2009-09-11 14:16:54 -04:00

6 lines
158 B
JavaScript

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