diff options
Diffstat (limited to 'jstests/core/getlog1.js')
-rw-r--r-- | jstests/core/getlog1.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/getlog1.js b/jstests/core/getlog1.js index fa5c4884b3b..cf59b8f8318 100644 --- a/jstests/core/getlog1.js +++ b/jstests/core/getlog1.js @@ -9,16 +9,16 @@ contains = function(arr,obj) { } } return false; -} +}; -var resp = db.adminCommand({getLog:"*"}) +var resp = db.adminCommand({getLog:"*"}); assert( resp.ok == 1, "error executing getLog command" ); assert( resp.names, "no names field" ); assert( resp.names.length > 0, "names array is empty" ); assert( contains(resp.names,"global") , "missing global category" ); assert( !contains(resp.names,"butty") , "missing butty category" ); -resp = db.adminCommand({getLog:"global"}) +resp = db.adminCommand({getLog:"global"}); assert( resp.ok == 1, "error executing getLog command" ); assert( resp.log, "no log field" ); assert( resp.log.length > 0 , "no log lines" ); |