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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
e5ba29f3
"src/csharp/Grpc.Core/ServerPort.cs" did not exist on "8ce5e8bbccc4b2d0e7e3b26fe857c105ba68943e"
Commit
e5ba29f3
authored
9 years ago
by
Stanley Cheung
Browse files
Options
Downloads
Patches
Plain Diff
php: implement empty_stream interop test
parent
4d3fc145
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/php/tests/interop/interop_client.php
+19
-0
19 additions, 0 deletions
src/php/tests/interop/interop_client.php
with
19 additions
and
0 deletions
src/php/tests/interop/interop_client.php
+
19
−
0
View file @
e5ba29f3
...
...
@@ -250,6 +250,22 @@ function pingPong($stub) {
'Call did not complete successfully'
);
}
/**
* Run the empty_stream test.
* Passes when run against the Node server as of 2015-10-09
* @param $stub Stub object that has service methods.
*/
function
emptyStream
(
$stub
)
{
// for the current PHP implementation, $call->read() will wait
// forever for a server response if the server is not sending any.
// so this test is imeplemented as a timeout to indicate the absence
// of receiving any response from the server
$call
=
$stub
->
FullDuplexCall
(
array
(
'timeout'
=>
100000
));
hardAssert
(
$call
->
read
()
===
null
,
'Server returned too many responses'
);
hardAssert
(
$call
->
getStatus
()
->
code
===
Grpc\STATUS_DEADLINE_EXCEEDED
,
'Call did not complete successfully'
);
}
/**
* Run the cancel_after_begin test.
* Passes when run against the Node server as of 2015-08-28
...
...
@@ -370,6 +386,9 @@ switch ($args['test_case']) {
case
'ping_pong'
:
pingPong
(
$stub
);
break
;
case
'empty_stream'
:
emptyStream
(
$stub
);
break
;
case
'cancel_after_begin'
:
cancelAfterBegin
(
$stub
);
break
;
...
...
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
register
or
sign in
to comment