summaryrefslogtreecommitdiff
path: root/jstests/dbadmin.js
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-08-11 12:38:57 +0200
committerAntonin Kral <a.kral@bobek.cz>2010-08-11 12:38:57 +0200
commit7645618fd3914cb8a20561625913c20d49504a49 (patch)
tree8370f846f58f6d71165b7a0e2eda04648584ec76 /jstests/dbadmin.js
parent68c73c3c7608b4c87f07440dc3232801720b1168 (diff)
downloadmongodb-7645618fd3914cb8a20561625913c20d49504a49.tar.gz
Imported Upstream version 1.6.0
Diffstat (limited to 'jstests/dbadmin.js')
-rw-r--r--jstests/dbadmin.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/dbadmin.js b/jstests/dbadmin.js
index 8d0e7d1..8ea0426 100644
--- a/jstests/dbadmin.js
+++ b/jstests/dbadmin.js
@@ -16,6 +16,9 @@ else {
t.save( { x : 1 } );
res = db._adminCommand( "listDatabases" );
-assert( res.databases.length > 0 , "listDatabases 1" );
+assert( res.databases && res.databases.length > 0 , "listDatabases 1 " + tojson(res) );
+
+x = db._adminCommand( "ismaster" );
+assert( x.ismaster , "ismaster failed: " + tojson( x ) )
// TODO: add more tests here