Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
572e52f7
Commit
572e52f7
authored
Jul 23, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix web concurrency tests
parent
b464cd2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
run
test/run
+4
-8
No files found.
test/run
View file @
572e52f7
...
...
@@ -406,29 +406,25 @@ testMultiExport() {
testConcurrency1X
()
{
MEMORY_AVAILABLE
=
512 capture
$(
pwd
)
/profile/nodejs.sh
assertCaptured
"Detected 512 MB available memory, 512 MB limit per process (WEB_MEMORY)"
assertCaptured
"Recommending WEB_CONCURRENCY=1"
assertEquals
"
$WEB_CONCURRENCY
"
"1"
assertCapturedSuccess
}
testConcurrency2X
()
{
MEMORY_AVAILABLE
=
1024 capture
$(
pwd
)
/profile/nodejs.sh
assertCaptured
"Detected 1024 MB available memory, 512 MB limit per process (WEB_MEMORY)"
assertCaptured
"Recommending WEB_CONCURRENCY=2"
assertEquals
"
$WEB_CONCURRENCY
"
"2"
assertCapturedSuccess
}
testConcurrencyPX
()
{
MEMORY_AVAILABLE
=
6144 capture
$(
pwd
)
/profile/nodejs.sh
assertCaptured
"Detected 6144 MB available memory, 512 MB limit per process (WEB_MEMORY)"
assertCaptured
"Recommending WEB_CONCURRENCY=12"
assertEquals
"
$WEB_CONCURRENCY
"
"12"
assertCapturedSuccess
}
testConcurrencyCustomLimit
()
{
MEMORY_AVAILABLE
=
1024
WEB_MEMORY
=
256 capture
$(
pwd
)
/profile/nodejs.sh
assertCaptured
"Detected 1024 MB available memory, 256 MB limit per process (WEB_MEMORY)"
assertCaptured
"Recommending WEB_CONCURRENCY=4"
assertEquals
"
$WEB_CONCURRENCY
"
"4"
assertCapturedSuccess
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment