summaryrefslogtreecommitdiff
path: root/jstests/apitest_dbcollection.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-05-06 16:32:21 -0400
committerEliot Horowitz <eliot@10gen.com>2009-05-06 16:32:21 -0400
commit038b2c4b5a16c5c63542b8a99eb0f9e4bc56d5cf (patch)
treee7157b5e285d1984e228369b37a7073f68844046 /jstests/apitest_dbcollection.js
parentdb390f66c61106254ca6d40f25c152acaab3fcba (diff)
downloadmongo-038b2c4b5a16c5c63542b8a99eb0f9e4bc56d5cf.tar.gz
correct debugging MINOR
Diffstat (limited to 'jstests/apitest_dbcollection.js')
-rw-r--r--jstests/apitest_dbcollection.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/apitest_dbcollection.js b/jstests/apitest_dbcollection.js
index f9dda81d9bf..76210f96590 100644
--- a/jstests/apitest_dbcollection.js
+++ b/jstests/apitest_dbcollection.js
@@ -91,24 +91,24 @@ db.getCollection( "test_db" ).ensureIndex({a:1});
db.getCollection( "test_db" ).ensureIndex({b:1});
db.getCollection( "test_db" ).save({a:10, b:12});
-assert(db.getCollection( "test_db" ).getIndexes().length() == 3,18);
+assert(db.getCollection( "test_db" ).getIndexes().length() == 3,19);
db.getCollection( "test_db" ).dropIndex({b:1});
-assert(db.getCollection( "test_db" ).getIndexes().length() == 2,19);
+assert(db.getCollection( "test_db" ).getIndexes().length() == 2,20);
db.getCollection( "test_db" ).dropIndex({a:1});
-assert(db.getCollection( "test_db" ).getIndexes().length() == 1,20);
+assert(db.getCollection( "test_db" ).getIndexes().length() == 1,21);
db.getCollection( "test_db" ).save({a:10, b:11});
db.getCollection( "test_db" ).ensureIndex({a:1});
db.getCollection( "test_db" ).ensureIndex({b:1});
db.getCollection( "test_db" ).save({a:10, b:12});
-assert(db.getCollection( "test_db" ).getIndexes().length() == 3,21);
+assert(db.getCollection( "test_db" ).getIndexes().length() == 3,22);
db.getCollection( "test_db" ).dropIndexes();
-assert(db.getCollection( "test_db" ).getIndexes().length() == 1,22);
+assert(db.getCollection( "test_db" ).getIndexes().length() == 1,23);
db.getCollection( "test_db" ).find();
db.getCollection( "test_db" ).drop();
-assert(db.getCollection( "test_db" ).getIndexes().length() == 0,23);
+assert(db.getCollection( "test_db" ).getIndexes().length() == 0,24);