summaryrefslogtreecommitdiff
path: root/jstests/core
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2014-11-24 14:04:06 -0500
committerMark Benvenuto <mark.benvenuto@mongodb.com>2014-11-26 10:45:48 -0500
commit4df4b1066735e3806fa2efb4ff6d6c6b277ab6b1 (patch)
treea3b26e017736c4b71a4e6ab69dab6b18fb5aaa8c /jstests/core
parent1ca93ea38fe42f885c5c198d9f46335ff1294136 (diff)
downloadmongo-4df4b1066735e3806fa2efb4ff6d6c6b277ab6b1.tar.gz
SERVER-16055: Commands with empty string cause the server to terminate
Diffstat (limited to 'jstests/core')
-rw-r--r--jstests/core/dbhash2.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/core/dbhash2.js b/jstests/core/dbhash2.js
index ac491291c2b..74cc1fb8422 100644
--- a/jstests/core/dbhash2.js
+++ b/jstests/core/dbhash2.js
@@ -17,6 +17,7 @@ res3 = mydb.runCommand( "dbhash" );
assert( res3.fromCache.indexOf( "config.foo" ) < 0 );
assert.neq( res1.collections.foo, res3.collections.foo );
-
+// Validate dbHash with an empty database does not trigger an fassert/invariant
+assert.commandFailed(db.runCommand( {"dbhash" : "" }));