From 3b9581e84e19723087b31b79674801b6c06ae533 Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Wed, 18 Aug 2010 09:23:15 +0200 Subject: Imported Upstream version 1.6.1 --- jstests/dbadmin.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'jstests/dbadmin.js') 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 -- cgit v1.2.3