diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-01-31 17:22:22 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-01-31 17:22:22 -0500 |
commit | b67533238a3c908ff1760e1a0fe8b6885cedb727 (patch) | |
tree | 9349261d2adc9a0eefea2d9f09f273810eb78195 /jstests/update2.js | |
parent | 09bbd0e6c24a789650c02b6dd04f8d0b06d6cac7 (diff) | |
download | mongo-b67533238a3c908ff1760e1a0fe8b6885cedb727.tar.gz |
don't connect explicitly
Diffstat (limited to 'jstests/update2.js')
-rw-r--r-- | jstests/update2.js | 3 |
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 ); |