summaryrefslogtreecommitdiff
path: root/jstests/dbadmin.js
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-08-18 09:23:15 +0200
committerAntonin Kral <a.kral@bobek.cz>2010-08-18 09:23:15 +0200
commit3b9581e84e19723087b31b79674801b6c06ae533 (patch)
tree5568dbd7199b1ce64ace1cec26b590c1431e872d /jstests/dbadmin.js
parentd7ec8115ec4b160ed74c1a8a06a1c171d76370ac (diff)
downloadmongodb-3b9581e84e19723087b31b79674801b6c06ae533.tar.gz
Imported Upstream version 1.6.1
Diffstat (limited to 'jstests/dbadmin.js')
-rw-r--r--jstests/dbadmin.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/dbadmin.js b/jstests/dbadmin.js
index 8ea0426..b209b0d 100644
--- a/jstests/dbadmin.js
+++ b/jstests/dbadmin.js
@@ -21,4 +21,10 @@ assert( res.databases && res.databases.length > 0 , "listDatabases 1 " + tojson(
x = db._adminCommand( "ismaster" );
assert( x.ismaster , "ismaster failed: " + tojson( x ) )
+before = db.runCommand( "serverStatus" )
+sleep( 5000 )
+after = db.runCommand( "serverStatus" )
+assert.lt( 3 , after.uptimeEstimate , "up1" )
+assert.gt( after.uptimeEstimate , before.uptimeEstimate , "up2" )
+
// TODO: add more tests here