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
a0414ee1
Commit
a0414ee1
authored
9 years ago
by
Makarand Dharmapurikar
Browse files
Options
Downloads
Patches
Plain Diff
Addressed feedback from @jcanizales
parent
9656eca5
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/objective-c/tests/GRPCClientTests.m
+3
-1
3 additions, 1 deletion
src/objective-c/tests/GRPCClientTests.m
with
3 additions
and
1 deletion
src/objective-c/tests/GRPCClientTests.m
+
3
−
1
View file @
a0414ee1
...
...
@@ -42,10 +42,12 @@
#import <RxLibrary/GRXWriteable.h>
#import <RxLibrary/GRXWriter+Immediate.h>
#import <GRPCClient/GRPCCall+ChannelArg.h>
static
NSString
*
const
kHostAddress
=
@"localhost:5050"
;
static
NSString
*
const
kPackage
=
@"grpc.testing"
;
static
NSString
*
const
kService
=
@"TestService"
;
static
NSString
*
const
kRemoteSSLHost
=
@"grpc-test.sandbox.googleapis.com"
;
static
ProtoMethod
*
kInexistentMethod
;
static
ProtoMethod
*
kEmptyCallMethod
;
static
ProtoMethod
*
kUnaryCallMethod
;
...
...
@@ -127,7 +129,6 @@ static ProtoMethod *kUnaryCallMethod;
XCTFail
(
@"Received unexpected response: %@"
,
value
);
}
completionHandler
:
^
(
NSError
*
errorOrNil
)
{
XCTAssertNotNil
(
errorOrNil
,
@"Finished without error!"
);
//
XCTAssertEqual
(
errorOrNil
.
code
,
12
,
@"Finished with unexpected error: %@"
,
errorOrNil
);
[
expectation
fulfill
];
}];
...
...
@@ -257,6 +258,7 @@ static ProtoMethod *kUnaryCallMethod;
[
self
waitForExpectationsWithTimeout
:
8
handler
:
nil
];
}
// todo(makaradd): Move to a different file that contains only unit tests
-
(
void
)
testExceptions
{
// Try to set userAgentPrefix for host that is nil. This should cause
// an exception.
...
...
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