summaryrefslogtreecommitdiff
path: root/jstests/sort1.js
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-01-11 10:14:21 -0800
committerAaron <aaron@10gen.com>2010-01-11 10:14:21 -0800
commita583a72db9587e25a6fe83d4f29a152635893c38 (patch)
treeebe6002a82de0dae2a5c4d4bb41e3742e90b64e9 /jstests/sort1.js
parent63df738650175dadb9ac5f590516b3585f229a6d (diff)
downloadmongo-a583a72db9587e25a6fe83d4f29a152635893c38.tar.gz
SERVER-470 try removing 'bar' collection from tests again
Diffstat (limited to 'jstests/sort1.js')
-rw-r--r--jstests/sort1.js22
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);