diff options
author | Jason Rassi <rassi@10gen.com> | 2014-07-14 15:35:42 -0400 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2014-07-14 15:38:26 -0400 |
commit | 645a67482a480183e2e9b780c9e84f776d40f8f8 (patch) | |
tree | 2cd384bafbcc59d32d430561fd9baeb863d1f8d6 | |
parent | a6cd9b2827c40069c95abf9434d2e958afa72ffd (diff) | |
download | mongo-645a67482a480183e2e9b780c9e84f776d40f8f8.tar.gz |
SERVER-14284 cursor6.js, update_setOnInsert.js turn profiler off
jstests should not leave profiler enabled at test run end.
-rw-r--r-- | jstests/core/cursor6.js | 2 | ||||
-rw-r--r-- | jstests/core/update_setOnInsert.js | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/jstests/core/cursor6.js b/jstests/core/cursor6.js index 33944eafd3a..9c50e9ecbb2 100644 --- a/jstests/core/cursor6.js +++ b/jstests/core/cursor6.js @@ -98,3 +98,5 @@ check( false ); check( true ); assert.eq( "BasicCursor", r.find().sort( { a: 1, b: -1, z: 1 } ).hint( { $natural: -1 } ).explain().cursor ); + +db.setProfilingLevel( 0 ); diff --git a/jstests/core/update_setOnInsert.js b/jstests/core/update_setOnInsert.js index 9656ac9b48d..c302a7638bb 100644 --- a/jstests/core/update_setOnInsert.js +++ b/jstests/core/update_setOnInsert.js @@ -43,3 +43,5 @@ assert(res.hasWriteError(), "$setOnInsert _id.b - " + res.toString() + tojson(t. res = t.update( {"_id.a": 4} , { $setOnInsert: { "_id": {a:4, b:1} } } , true ); assert(res.hasWriteError(), "$setOnInsert _id 3 - " + res.toString() + tojson(t.findOne())); + +db.setProfilingLevel( 0 ); |