Permalink
Browse files

rename test colls to work in parallel mode

  • Loading branch information...
1 parent 45f8d67 commit 71e1d3442cc89b22fbeb71d07e945d6088284c71 @astaple astaple committed Mar 29, 2010
Showing with 11 additions and 11 deletions.
  1. +11 −11 jstests/ref3.js
View
@@ -1,19 +1,19 @@
// to run:
-// ./mongo jstests/ref.js
+// ./mongo jstests/ref3.js
-db.otherthings.drop();
-db.things.drop();
+db.otherthings3.drop();
+db.things3.drop();
var other = { s : "other thing", n : 1};
-db.otherthings.save(other);
+db.otherthings3.save(other);
-db.things.save( { name : "abc" } );
-x = db.things.findOne();
-x.o = new DBRef( "otherthings" , other._id );
-db.things.save(x);
+db.things3.save( { name : "abc" } );
+x = db.things3.findOne();
+x.o = new DBRef( "otherthings3" , other._id );
+db.things3.save(x);
-assert( db.things.findOne().o.fetch().n == 1, "dbref broken 2" );
+assert( db.things3.findOne().o.fetch().n == 1, "dbref broken 2" );
other.n++;
-db.otherthings.save(other);
-assert( db.things.findOne().o.fetch().n == 2, "dbrefs broken" );
+db.otherthings3.save(other);
+assert( db.things3.findOne().o.fetch().n == 2, "dbrefs broken" );

0 comments on commit 71e1d34

Please sign in to comment.