diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-08-06 15:23:56 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-08-06 15:23:56 -0400 |
commit | 889c34777e2aa0096f3ce2b2152dec969c29db1d (patch) | |
tree | 763a83ef56c081bbfcb63ad162720102b5d3b06d | |
parent | ade581aa6571951e2c0036e40072985c72517648 (diff) | |
download | mongo-889c34777e2aa0096f3ce2b2152dec969c29db1d.tar.gz |
test for not being able to delete indexes
-rw-r--r-- | jstests/indexd.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jstests/indexd.js b/jstests/indexd.js new file mode 100644 index 00000000000..7f9dcf3f94b --- /dev/null +++ b/jstests/indexd.js @@ -0,0 +1,10 @@ + +t = db.indexd; +t.drop(); + +t.save( { a : 1 } ); +t.ensureIndex( { a : 1 } ); +//db.indexd.$_id_.drop(); +r = t.drop(); +assert.eq( 1 , r.ok , "drop failed: " + tojson( r ) ); + |