summaryrefslogtreecommitdiff
path: root/jstests/profile2.js
diff options
context:
space:
mode:
authoragirbal <antoine@10gen.com>2012-02-15 11:14:22 -0800
committeragirbal <antoine@10gen.com>2012-02-15 11:14:22 -0800
commit615045f2970a48f3bf9e2c83768b23239daad659 (patch)
treebedc6896db5f9a0ffe4452716e5ec8df2204fd4f /jstests/profile2.js
parentc4619cf3833376ddd794ac11c9e8c4814e9bcd26 (diff)
downloadmongo-615045f2970a48f3bf9e2c83768b23239daad659.tar.gz
special local db for profile tests, to be run in parallel
Diffstat (limited to 'jstests/profile2.js')
-rw-r--r--jstests/profile2.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/profile2.js b/jstests/profile2.js
index 46392549296..b2850f8051a 100644
--- a/jstests/profile2.js
+++ b/jstests/profile2.js
@@ -1,5 +1,8 @@
print("profile2.js BEGIN");
+// special db so that it can be run in parallel tests
+var db = db.getSisterDB("profile2");
+
try {
assert.commandWorked( db.runCommand( {profile:2} ) );