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
ce60d8e7
Commit
ce60d8e7
authored
8 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
add AsyncCalServer tests to sanity tests
parent
b6a9016f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/csharp/Grpc.Core.Tests/Internal/AsyncCallServerTest.cs
+3
-5
3 additions, 5 deletions
src/csharp/Grpc.Core.Tests/Internal/AsyncCallServerTest.cs
src/csharp/tests.json
+1
-0
1 addition, 0 deletions
src/csharp/tests.json
with
4 additions
and
5 deletions
src/csharp/Grpc.Core.Tests/Internal/AsyncCallServerTest.cs
+
3
−
5
View file @
ce60d8e7
...
@@ -83,7 +83,7 @@ namespace Grpc.Core.Internal.Tests
...
@@ -83,7 +83,7 @@ namespace Grpc.Core.Internal.Tests
Assert
.
IsFalse
(
moveNextTask
.
Result
);
Assert
.
IsFalse
(
moveNextTask
.
Result
);
fakeCall
.
ReceivedCloseOnServerHandler
(
true
,
cancelled
:
true
);
fakeCall
.
ReceivedCloseOnServerHandler
(
true
,
cancelled
:
true
);
Assert
Dispos
ed
(
asyncCallServer
,
fakeCall
,
finishedTask
);
Assert
Finish
ed
(
asyncCallServer
,
fakeCall
,
finishedTask
);
}
}
[
Test
]
[
Test
]
...
@@ -100,14 +100,12 @@ namespace Grpc.Core.Internal.Tests
...
@@ -100,14 +100,12 @@ namespace Grpc.Core.Internal.Tests
fakeCall
.
ReceivedMessageHandler
(
true
,
null
);
fakeCall
.
ReceivedMessageHandler
(
true
,
null
);
Assert
.
IsFalse
(
moveNextTask
.
Result
);
Assert
.
IsFalse
(
moveNextTask
.
Result
);
Assert
Dispos
ed
(
asyncCallServer
,
fakeCall
,
finishedTask
);
Assert
Finish
ed
(
asyncCallServer
,
fakeCall
,
finishedTask
);
}
}
// TODO: read completion failure ...
// TODO: read completion failure ...
// TODO:
// TODO: write fails...
// TODO: write fails...
...
@@ -124,7 +122,7 @@ namespace Grpc.Core.Internal.Tests
...
@@ -124,7 +122,7 @@ namespace Grpc.Core.Internal.Tests
// TODO: what does writing status do to reads?
// TODO: what does writing status do to reads?
static
void
Assert
Dispos
ed
(
AsyncCallServer
<
string
,
string
>
asyncCallServer
,
FakeNativeCall
fakeCall
,
Task
finishedTask
)
static
void
Assert
Finish
ed
(
AsyncCallServer
<
string
,
string
>
asyncCallServer
,
FakeNativeCall
fakeCall
,
Task
finishedTask
)
{
{
Assert
.
IsTrue
(
fakeCall
.
IsDisposed
);
Assert
.
IsTrue
(
fakeCall
.
IsDisposed
);
Assert
.
IsTrue
(
finishedTask
.
IsCompleted
);
Assert
.
IsTrue
(
finishedTask
.
IsCompleted
);
...
...
This diff is collapsed.
Click to expand it.
src/csharp/tests.json
+
1
−
0
View file @
ce60d8e7
{
{
"Grpc.Core.Tests"
:
[
"Grpc.Core.Tests"
:
[
"Grpc.Core.Internal.Tests.AsyncCallServerTest"
,
"Grpc.Core.Internal.Tests.AsyncCallTest"
,
"Grpc.Core.Internal.Tests.AsyncCallTest"
,
"Grpc.Core.Internal.Tests.ChannelArgsSafeHandleTest"
,
"Grpc.Core.Internal.Tests.ChannelArgsSafeHandleTest"
,
"Grpc.Core.Internal.Tests.CompletionQueueEventTest"
,
"Grpc.Core.Internal.Tests.CompletionQueueEventTest"
,
...
...
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