mongo-debian/jstests/error3.js
2010-01-31 08:32:52 +01:00

5 lines
158 B
JavaScript

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