diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-12-01 17:14:34 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-12-01 17:14:34 -0500 |
commit | 4ec0073f3c847c6129b53ea8d2e27dd7f78d4bdd (patch) | |
tree | deb668f0e36840ccca905faa50bf091107555e90 /jstests/profile1.js | |
parent | 131696f5b9b81d1657034e100a4d7c82efe02731 (diff) | |
download | mongo-4ec0073f3c847c6129b53ea8d2e27dd7f78d4bdd.tar.gz |
SERVER-7814 - better error handling for fast_oplog_insert and profiling
Diffstat (limited to 'jstests/profile1.js')
-rw-r--r-- | jstests/profile1.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/profile1.js b/jstests/profile1.js index b8e0db5fc7c..ff8886e72c2 100644 --- a/jstests/profile1.js +++ b/jstests/profile1.js @@ -61,8 +61,8 @@ try { assert.eq(0, db.runCommand({profile: -1}).was, "F"); db.createCollection("system.profile"); - db.runCommand({profile: 2}); - assert.eq(2, db.runCommand({profile: -1}).was, "G"); + assert.eq( 0, db.runCommand({profile: 2}).ok ); + assert.eq( 0, db.runCommand({profile: -1}).was, "G"); assert.eq(null, db.system.profile.stats().capped, "G1"); /* With no system.profile collection */ |