Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
d02d1d50
Commit
d02d1d50
authored
Jan 27, 2015
by
Tim Emiola
Browse files
Options
Downloads
Patches
Plain Diff
Removes port_picker from call_spec.rb, removes a redundant test
parent
61ddba35
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ruby/spec/call_spec.rb
+2
-24
2 additions, 24 deletions
src/ruby/spec/call_spec.rb
with
2 additions
and
24 deletions
src/ruby/spec/call_spec.rb
+
2
−
24
View file @
d02d1d50
...
...
@@ -28,7 +28,6 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
require
'grpc'
require
'port_picker'
include
GRPC
::
Core
::
StatusCodes
...
...
@@ -71,16 +70,8 @@ describe GRPC::Core::Call do
before
(
:each
)
do
@tag
=
Object
.
new
@client_queue
=
GRPC
::
Core
::
CompletionQueue
.
new
@server_queue
=
GRPC
::
Core
::
CompletionQueue
.
new
port
=
find_unused_tcp_port
host
=
"localhost:
#{
port
}
"
@server
=
GRPC
::
Core
::
Server
.
new
(
@server_queue
,
nil
)
@server
.
add_http2_port
(
host
)
@ch
=
GRPC
::
Core
::
Channel
.
new
(
host
,
nil
)
end
after
(
:each
)
do
@server
.
close
fake_host
=
'localhost:10101'
@ch
=
GRPC
::
Core
::
Channel
.
new
(
fake_host
,
nil
)
end
describe
'#start_read'
do
...
...
@@ -122,19 +113,6 @@ describe GRPC::Core::Call do
end
end
describe
'#start_write'
do
it
'should cause the WRITE_ACCEPTED event'
do
call
=
make_test_call
call
.
invoke
(
@client_queue
,
@tag
,
@tag
)
expect
(
call
.
start_write
(
GRPC
::
Core
::
ByteBuffer
.
new
(
'test_start_write'
),
@tag
)).
to
be_nil
ev
=
@client_queue
.
next
(
deadline
)
expect
(
ev
.
call
).
to
be_a
(
GRPC
::
Core
::
Call
)
expect
(
ev
.
type
).
to
be
(
GRPC
::
Core
::
CompletionType
::
WRITE_ACCEPTED
)
expect
(
ev
.
tag
).
to
be
(
@tag
)
end
end
describe
'#status'
do
it
'can save the status and read it back'
do
call
=
make_test_call
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment