mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
10 lines
349 B
JavaScript
10 lines
349 B
JavaScript
|
|
old = db.adminCommand( { "getParameter" : "*" } )
|
|
tmp1 = db.adminCommand( { "setParameter" : 1 , "logLevel" : 5 } )
|
|
tmp2 = db.adminCommand( { "setParameter" : 1 , "logLevel" : old.logLevel } )
|
|
now = db.adminCommand( { "getParameter" : "*" } )
|
|
|
|
assert.eq( old , now , "A" )
|
|
assert.eq( old.logLevel , tmp1.was , "B" )
|
|
assert.eq( 5 , tmp2.was , "C" )
|