summaryrefslogtreecommitdiff
path: root/jstests/profile1.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-11-09 13:10:30 -0500
committerEliot Horowitz <eliot@10gen.com>2009-11-09 13:10:30 -0500
commit76d849e09077d1b3dbd5cad3fe296ca06e91119f (patch)
treeb1dd970f3d81f0e320363eb79473fef2dab85c7c /jstests/profile1.js
parentf6d06681413db0efbbca189ddf6e5e7cd6217349 (diff)
downloadmongo-76d849e09077d1b3dbd5cad3fe296ca06e91119f.tar.gz
fix drop fallout
Diffstat (limited to 'jstests/profile1.js')
-rw-r--r--jstests/profile1.js3
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});