summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-12-22 13:07:36 -0800
committerAaron <aaron@10gen.com>2009-12-22 13:07:36 -0800
commitf97a6f32d69d42bba3b886d6eccf58a6256b9508 (patch)
treef1337deec40dc144b8f86642173c1a0f2f15615c
parent03eaaf92b0dfe9bf25fcd656ff1fed2b3207fe06 (diff)
downloadmongo-f97a6f32d69d42bba3b886d6eccf58a6256b9508.tar.gz
SERVER-470 begin basic parallel test
-rw-r--r--jstests/parallel/basic.js8
-rw-r--r--mongo.xcodeproj/project.pbxproj10
2 files changed, 18 insertions, 0 deletions
diff --git a/jstests/parallel/basic.js b/jstests/parallel/basic.js
new file mode 100644
index 00000000000..033deaaea6c
--- /dev/null
+++ b/jstests/parallel/basic.js
@@ -0,0 +1,8 @@
+t = db.jstests_parallel_basic;
+
+// would be nice to configure and output a random seed so we can reproduce
+// behavior. Seems like that's impossible using Math.random().
+
+expTimeout = function( mean ) {
+ return -Math.log( Math.random() ) * mean;
+}
diff --git a/mongo.xcodeproj/project.pbxproj b/mongo.xcodeproj/project.pbxproj
index ababcd7a9bc..e2da1432eba 100644
--- a/mongo.xcodeproj/project.pbxproj
+++ b/mongo.xcodeproj/project.pbxproj
@@ -478,6 +478,7 @@
93E5B88F10D7FF890044F9E4 /* v8_wrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = v8_wrapper.h; sourceTree = "<group>"; };
93E727090F4B5B5B004F9B5D /* shardkey.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = shardkey.cpp; sourceTree = "<group>"; };
93E7270A0F4B5B5B004F9B5D /* shardkey.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = shardkey.h; sourceTree = "<group>"; };
+ 93F0957010E165E50053380C /* basic.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = basic.js; sourceTree = "<group>"; };
C6859E8B029090EE04C91782 /* mongo.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = mongo.1; sourceTree = "<group>"; };
/* End PBXFileReference section */
@@ -700,6 +701,7 @@
934BEB9A10DFFA9600178102 /* jstests */ = {
isa = PBXGroup;
children = (
+ 93F0956F10E165E50053380C /* parallel */,
934BEB9B10DFFA9600178102 /* _lodeRunner.js */,
934BEB9C10DFFA9600178102 /* _runner.js */,
934BEB9D10DFFA9600178102 /* _runner_leak.js */,
@@ -1129,6 +1131,14 @@
path = scripting;
sourceTree = "<group>";
};
+ 93F0956F10E165E50053380C /* parallel */ = {
+ isa = PBXGroup;
+ children = (
+ 93F0957010E165E50053380C /* basic.js */,
+ );
+ path = parallel;
+ sourceTree = "<group>";
+ };
C6859E8C029090F304C91782 /* Documentation */ = {
isa = PBXGroup;
children = (