summaryrefslogtreecommitdiff
path: root/jstests/profile1.js
diff options
context:
space:
mode:
authoragirbal <antoine@10gen.com>2012-02-12 11:49:38 -0800
committeragirbal <antoine@10gen.com>2012-02-12 11:49:38 -0800
commit408bdeb3ca7e820e2ac1c32454e21e65cbdf9179 (patch)
tree29e18844671a1411bdead3f014ceb836dad52aec /jstests/profile1.js
parentb1d52e52466fc283ebcfcab1c586cc8eb4bf5373 (diff)
downloadmongo-408bdeb3ca7e820e2ac1c32454e21e65cbdf9179.tar.gz
profile tests could not run in parallel, need own db
Diffstat (limited to 'jstests/profile1.js')
-rw-r--r--jstests/profile1.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/profile1.js b/jstests/profile1.js
index ad69d90a55f..6824569bfd8 100644
--- a/jstests/profile1.js
+++ b/jstests/profile1.js
@@ -1,5 +1,8 @@
print("profile1.js BEGIN");
+// special db so that it can be run in parallel tests
+db = db.getSisterDB("profile1");
+
try {
function getProfileAString() {
@@ -120,7 +123,7 @@ try {
assert.eq( q , r.query , "Y1" );
assert.eq( u , r.updateobj , "Y2" );
assert.eq( "update" , r.op , "Y3" );
- assert.eq("test.profile1", r.ns, "Y4");
+ assert.eq("profile1.profile1", r.ns, "Y4");
print("profile1.js SUCCESS OK");