Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
814f76b9
Commit
814f76b9
authored
Mar 13, 2011
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
putting number of workers to run tests as a environment variable
parent
a106f249
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
base_test_case.rb
test/base_test_case.rb
+6
-2
No files found.
test/base_test_case.rb
View file @
814f76b9
...
...
@@ -25,7 +25,7 @@ module BaseTestCase
def
teardown
unless
@disable_start_stop_server
self
.
stop_server
#
self.delete_config_file
self
.
delete_config_file
end
end
...
...
@@ -45,6 +45,10 @@ module BaseTestCase
return
ENV
[
'NGINX_PORT'
].
nil?
?
"9990"
:
ENV
[
'NGINX_PORT'
]
end
def
nginx_workers
return
ENV
[
'NGINX_WORKERS'
].
nil?
?
"1"
:
ENV
[
'NGINX_WORKERS'
]
end
def
start_server
error_message
=
""
status
=
POpen4
::
popen4
(
"
#{
nginx_executable
}
-c
#{
Dir
.
tmpdir
}
/
#{
@test_config_file
}
"
)
do
|
stdout
,
stderr
,
stdin
,
pid
|
...
...
@@ -143,7 +147,7 @@ error_log logs/nginx-main_error.log debug;
# Development Mode
master_process off;
daemon off;
worker_processes
1
;
worker_processes
<%=nginx_workers%>
;
events {
worker_connections 1024;
...
...
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