Files
mongo/jstests/gle/core/error3.js
Randolph Tan c46e419831 SERVER-12127 migrate js tests to jscore suite when not related to writes
Added relevant getLastError tests to jstests/gle/core
2014-02-25 11:16:44 -05:00

6 lines
158 B
JavaScript

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