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
8cd0db6b
Commit
8cd0db6b
authored
Jul 24, 2011
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improving test assertion
parent
89e924c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_channel_statistics.rb
test/test_channel_statistics.rb
+2
-2
No files found.
test/test_channel_statistics.rb
View file @
8cd0db6b
...
...
@@ -535,12 +535,12 @@ class TestChannelStatistics < Test::Unit::TestCase
end
EventMachine
.
run
{
pub_2
=
EventMachine
::
HttpRequest
.
new
(
nginx_address
+
'/channels-stats?id=ch_test_*'
).
get
:head
=>
headers
,
:timeout
=>
30
pub_2
=
EventMachine
::
HttpRequest
.
new
(
nginx_address
+
'/channels-stats?id=ch_test_
get_detailed_channels_statistics_to_many_channels_using_prefix_10
*'
).
get
:head
=>
headers
,
:timeout
=>
30
pub_2
.
callback
{
assert_equal
(
200
,
pub_2
.
response_header
.
status
,
"Request was not accepted"
)
assert_not_equal
(
0
,
pub_2
.
response_header
.
content_length
,
"Empty response was received"
)
response
=
JSON
.
parse
(
pub_2
.
response
)
assert_equal
(
number_of_channels
,
response
[
"infos"
].
length
,
"Didn't received info about the created channels"
)
assert_equal
(
1111
,
response
[
"infos"
].
length
,
"Didn't received info about the created channels"
)
EventMachine
.
stop
}
}
...
...
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