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
566fe038
Commit
566fe038
authored
Dec 02, 2012
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding timeout to some tests
parent
7e70cc1c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
test_comunication_properties.rb
test/test_comunication_properties.rb
+2
-0
test_subscriber.rb
test/test_subscriber.rb
+12
-0
No files found.
test/test_comunication_properties.rb
View file @
566fe038
...
...
@@ -130,6 +130,7 @@ class TestComunicationProperties < Test::Unit::TestCase
EventMachine
.
stop
end
}
add_test_timeout
(
20
)
}
end
...
...
@@ -163,6 +164,7 @@ class TestComunicationProperties < Test::Unit::TestCase
EventMachine
.
stop
end
}
add_test_timeout
(
20
)
}
end
end
test/test_subscriber.rb
View file @
566fe038
...
...
@@ -274,6 +274,8 @@ class TestSubscriber < Test::Unit::TestCase
assert_equal
(
200
,
sub_1
.
response_header
.
status
,
"Channel was founded"
)
EventMachine
.
stop
}
add_test_timeout
}
end
...
...
@@ -300,6 +302,7 @@ class TestSubscriber < Test::Unit::TestCase
assert_equal
(
200
,
sub_1
.
response_header
.
status
,
"Channel was founded"
)
EventMachine
.
stop
}
add_test_timeout
}
end
...
...
@@ -417,6 +420,7 @@ class TestSubscriber < Test::Unit::TestCase
EventMachine
.
stop
end
}
add_test_timeout
(
10
)
}
end
...
...
@@ -484,6 +488,8 @@ class TestSubscriber < Test::Unit::TestCase
publish_message_inline
(
channel_4
,
headers
,
body
+
channel_4
.
to_s
)
publish_message_inline
(
channel_5
,
headers
,
body
+
channel_5
.
to_s
)
publish_message_inline
(
channel_6
,
headers
,
body
+
channel_6
.
to_s
)
add_test_timeout
(
10
)
}
end
...
...
@@ -654,6 +660,7 @@ class TestSubscriber < Test::Unit::TestCase
EventMachine
.
stop
}
}
add_test_timeout
(
10
)
}
end
...
...
@@ -730,6 +737,7 @@ class TestSubscriber < Test::Unit::TestCase
#publish a message
publish_message_inline
(
channel
,
headers
,
body
)
add_test_timeout
}
EventMachine
.
run
{
...
...
@@ -741,6 +749,7 @@ class TestSubscriber < Test::Unit::TestCase
assert_equal
(
body
,
response
[
'text'
],
"Wrong message"
)
EventMachine
.
stop
}
add_test_timeout
}
EventMachine
.
run
{
...
...
@@ -752,6 +761,7 @@ class TestSubscriber < Test::Unit::TestCase
assert_equal
(
body
,
response
[
'msg'
],
"Wrong message"
)
EventMachine
.
stop
}
add_test_timeout
}
end
...
...
@@ -774,6 +784,7 @@ class TestSubscriber < Test::Unit::TestCase
#publish a message
publish_message_inline
(
channel
,
headers
,
body
)
add_test_timeout
}
end
...
...
@@ -808,6 +819,7 @@ class TestSubscriber < Test::Unit::TestCase
assert_equal
(
"chunked"
,
sub_1
.
response_header
[
'TRANSFER_ENCODING'
],
"Didn't receive the right transfer encoding"
)
EventMachine
.
stop
}
add_test_timeout
}
end
...
...
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