summaryrefslogtreecommitdiff
path: root/jstests/update2.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-01-31 17:22:22 -0500
committerEliot Horowitz <eliot@10gen.com>2009-01-31 17:22:22 -0500
commitb67533238a3c908ff1760e1a0fe8b6885cedb727 (patch)
tree9349261d2adc9a0eefea2d9f09f273810eb78195 /jstests/update2.js
parent09bbd0e6c24a789650c02b6dd04f8d0b06d6cac7 (diff)
downloadmongo-b67533238a3c908ff1760e1a0fe8b6885cedb727.tar.gz
don't connect explicitly
Diffstat (limited to 'jstests/update2.js')
-rw-r--r--jstests/update2.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/update2.js b/jstests/update2.js
index fec76eed427..ff9783348d4 100644
--- a/jstests/update2.js
+++ b/jstests/update2.js
@@ -1,4 +1,3 @@
-db = connect( "test" );
f = db.ed_db_update2;
f.drop();
@@ -16,4 +15,4 @@ assert.eq( 4, f.findOne().a );
f.drop();
f.save( { a: 4 } );
f.update( { a: 4 }, { $inc: { a: 2 } } );
-assert.eq( 6, f.findOne().a ); \ No newline at end of file
+assert.eq( 6, f.findOne().a );