|
|
@ -274,9 +274,9 @@ static ProtoMethod *kUnaryCallMethod; |
|
|
|
XCTAssertNotNil(value, @"nil value received as response."); |
|
|
|
XCTAssertNotNil(value, @"nil value received as response."); |
|
|
|
XCTAssertEqual([value length], 0, @"Non-empty response received: %@", value); |
|
|
|
XCTAssertEqual([value length], 0, @"Non-empty response received: %@", value); |
|
|
|
XCTAssertEqualObjects(call.responseHeaders[@"x-grpc-test-echo-useragent"], |
|
|
|
XCTAssertEqualObjects(call.responseHeaders[@"x-grpc-test-echo-useragent"], |
|
|
|
@"Foo grpc-objc/0.13.0 grpc-c/0.14.0-dev (ios)", |
|
|
|
@"Foo grpc-objc/0.13.0 grpc-c/0.14.0-dev (ios)", |
|
|
|
@"Did not receive expected user agent %@", |
|
|
|
@"Did not receive expected user agent %@", |
|
|
|
call.responseHeaders[@"x-grpc-test-echo-useragent"]); |
|
|
|
call.responseHeaders[@"x-grpc-test-echo-useragent"]); |
|
|
|
[response fulfill]; |
|
|
|
[response fulfill]; |
|
|
|
} completionHandler:^(NSError *errorOrNil) { |
|
|
|
} completionHandler:^(NSError *errorOrNil) { |
|
|
|
XCTAssertNil(errorOrNil, @"Finished with unexpected error: %@", errorOrNil); |
|
|
|
XCTAssertNil(errorOrNil, @"Finished with unexpected error: %@", errorOrNil); |
|
|
|