0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/jstests/error3.js

6 lines
158 B
JavaScript
Raw Normal View History

2009-09-11 20:16:54 +02:00
db.runCommand( "forceerror" );
assert.eq( "forced error" , db.getLastError() );
db.runCommand( "switchtoclienterrors" );
assert.isnull( db.getLastError() );