diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-11-09 13:10:30 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-11-09 13:10:30 -0500 |
commit | 76d849e09077d1b3dbd5cad3fe296ca06e91119f (patch) | |
tree | b1dd970f3d81f0e320363eb79473fef2dab85c7c /jstests/profile1.js | |
parent | f6d06681413db0efbbca189ddf6e5e7cd6217349 (diff) | |
download | mongo-76d849e09077d1b3dbd5cad3fe296ca06e91119f.tar.gz |
fix drop fallout
Diffstat (limited to 'jstests/profile1.js')
-rw-r--r-- | jstests/profile1.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/profile1.js b/jstests/profile1.js index 916b511f71a..d9abffe16b7 100644 --- a/jstests/profile1.js +++ b/jstests/profile1.js @@ -14,8 +14,7 @@ assert.gt(capped_size, 999, "D"); assert.lt(capped_size, 2000, "E"); /* Make sure we can't drop if profiling is still on */ -db.getCollection("system.profile").drop(); -assert(db.getLastError(), "Y"); +assert.throws( function(z){ db.getCollection("system.profile").drop(); } ) /* With pre-created system.profile (un-capped) */ db.runCommand({profile: 0}); |