mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
6 lines
158 B
JavaScript
6 lines
158 B
JavaScript
|
|
||
|
db.runCommand( "forceerror" );
|
||
|
assert.eq( "forced error" , db.getLastError() );
|
||
|
db.runCommand( "switchtoclienterrors" );
|
||
|
assert.isnull( db.getLastError() );
|