summaryrefslogtreecommitdiff
path: root/jstests/collmod.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-12-24 20:11:05 -0500
committerEliot Horowitz <eliot@10gen.com>2012-12-24 20:11:05 -0500
commit5f453739cc2d4f17341395115a2d27cda5894f38 (patch)
treed2f04b6f0d4585b96d0a2f5b135f1b904aa27137 /jstests/collmod.js
parenta3a5fd617cc9bc7df0083c60094ec6d804ddba3a (diff)
downloadmongo-5f453739cc2d4f17341395115a2d27cda5894f38.tar.gz
SERVER-6700 fix test
Diffstat (limited to 'jstests/collmod.js')
-rw-r--r--jstests/collmod.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/collmod.js b/jstests/collmod.js
index dbe95243e02..53458b31e09 100644
--- a/jstests/collmod.js
+++ b/jstests/collmod.js
@@ -2,8 +2,11 @@
// Test setting the usePowerOf2Sizes flag, and modifying TTL indexes.
var coll = "collModTest";
-db.createCollection( coll );
var t = db.getCollection( coll );
+t.drop();
+
+db.createCollection( coll );
+
// Verify the new collection has userFlags set to 0
assert.eq( t.stats().userFlags , 0 , "fresh collection doesn't have userFlags = 0 ");