summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2011-05-12 14:28:55 -0400
committerMathias Stearn <mathias@10gen.com>2011-05-12 14:49:20 -0400
commita6f79f97e282af263e8ba6e45b41027df35f85f9 (patch)
treed59a5b94c48c001d0ff23c4b0511247b4f0f74b3 /jstests
parentb7509f5433974f36837a07bc8f8f8b3e5893071b (diff)
downloadmongo-a6f79f97e282af263e8ba6e45b41027df35f85f9.tar.gz
Fix profile1.js test to run the same by itself and with _runner.js
Diffstat (limited to 'jstests')
-rw-r--r--jstests/profile1.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/profile1.js b/jstests/profile1.js
index 12db834ec82..daf1ff6dd7b 100644
--- a/jstests/profile1.js
+++ b/jstests/profile1.js
@@ -44,13 +44,14 @@ try {
assert.gt(auto_size, capped_size, "K");
- //
+ db.eval("sleep(1)") // pre-load system.js
+
db.setProfilingLevel(2);
before = db.system.profile.count();
db.eval( "sleep(50)" )
db.eval( "sleep(120)" )
after = db.system.profile.count()
- assert.eq( before + 4 , after , "X1" )
+ assert.eq( before + 3 , after , "X1" )
db.setProfilingLevel(1,100);
before = db.system.profile.count();