summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-04-24 10:17:40 -0400
committerEliot Horowitz <eliot@10gen.com>2012-04-24 10:17:40 -0400
commitf53de1128ddff7e99c5a6047cf56a6f5000d24c4 (patch)
treed479fa52238a0372326335b9094bf32897ef8fe3
parentd861e27e783406217a5d7f945a39169e5ae250a2 (diff)
downloadmongo-f53de1128ddff7e99c5a6047cf56a6f5000d24c4.tar.gz
jstests shouldn't drop the "test" db
-rw-r--r--jstests/extent.js2
-rw-r--r--jstests/indexb.js3
2 files changed, 2 insertions, 3 deletions
diff --git a/jstests/extent.js b/jstests/extent.js
index 8fca6998487..47ae868606a 100644
--- a/jstests/extent.js
+++ b/jstests/extent.js
@@ -7,5 +7,5 @@ for ( var i=0; i<50; i++ ) { // enough iterations to break 32 bit.
assert( t.count() == 1 );
t.drop();
}
+t.drop();
-db.dropDatabase();
diff --git a/jstests/indexb.js b/jstests/indexb.js
index 5507fee8460..d7d2e8c9f05 100644
--- a/jstests/indexb.js
+++ b/jstests/indexb.js
@@ -5,8 +5,7 @@
// when it doesn't move
-t = db.indexb;t = db.indexb;
-db.dropDatabase();
+t = db.indexb;
t.drop();
t.ensureIndex({a:1},true);