diff options
author | Aaron <aaron@10gen.com> | 2010-01-12 11:55:51 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2010-01-12 11:55:51 -0800 |
commit | c87c0cbed864c46e0ba0a30d3ef20a85cca88099 (patch) | |
tree | 7eaee004255116c0488a9ab885b27a11eb8d6d21 /jstests/sort1.js | |
parent | d0ab98809cc283997aadad7288eb6bb798779d66 (diff) | |
download | mongo-c87c0cbed864c46e0ba0a30d3ef20a85cca88099.tar.gz |
Revert "Revert "SERVER-470 don's use namespace 'bar' in jstests""
This reverts commit f124e60fd1f9b4f90cdbd752d138b968f59b4096.
Diffstat (limited to 'jstests/sort1.js')
-rw-r--r-- | jstests/sort1.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/jstests/sort1.js b/jstests/sort1.js index 20dd1892f8c..341b3437feb 100644 --- a/jstests/sort1.js +++ b/jstests/sort1.js @@ -29,22 +29,22 @@ debug( "b" ) assert(t.validate().valid); -db.bar.drop(); -db.bar.save({x:'a'}); -db.bar.save({x:'aba'}); -db.bar.save({x:'zed'}); -db.bar.save({x:'foo'}); +db.sorrrt2.drop(); +db.sorrrt2.save({x:'a'}); +db.sorrrt2.save({x:'aba'}); +db.sorrrt2.save({x:'zed'}); +db.sorrrt2.save({x:'foo'}); debug( "c" ) for( var pass = 0; pass < 2; pass++ ) { - debug( tojson( db.bar.find().sort( { "x" : 1 } ).limit(1).next() ) ); - assert.eq( "a" , db.bar.find().sort({'x': 1}).limit(1).next().x , "c.1" ); - assert.eq( "a" , db.bar.find().sort({'x': 1}).next().x , "c.2" ); - assert.eq( "zed" , db.bar.find().sort({'x': -1}).limit(1).next().x , "c.3" ); - assert.eq( "zed" , db.bar.find().sort({'x': -1}).next().x , "c.4" ); + debug( tojson( db.sorrrt2.find().sort( { "x" : 1 } ).limit(1).next() ) ); + assert.eq( "a" , db.sorrrt2.find().sort({'x': 1}).limit(1).next().x , "c.1" ); + assert.eq( "a" , db.sorrrt2.find().sort({'x': 1}).next().x , "c.2" ); + assert.eq( "zed" , db.sorrrt2.find().sort({'x': -1}).limit(1).next().x , "c.3" ); + assert.eq( "zed" , db.sorrrt2.find().sort({'x': -1}).next().x , "c.4" ); } debug( "d" ) -assert(db.bar.validate().valid); +assert(db.sorrrt2.validate().valid); |