Skip to content

Commit 76fcec4

Browse files
committed
fixup test
1 parent 31282f2 commit 76fcec4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Sources/GRPCProtobuf/Coding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public struct ProtobufDeserializer<Message: SwiftProtobuf.Message>: GRPCCore.Mes
5858
} catch let error {
5959
throw RPCError(
6060
code: .invalidArgument,
61-
message: "Can't deserialize to message of type \(Message.self) ERR: \(error)",
61+
message: "Can't deserialize to message of type \(Message.self).",
6262
cause: error
6363
)
6464
}

Tests/GRPCProtobufCodeGenTests/ProtobufCodeGeneratorTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ struct ProtobufCodeGeneratorTests {
405405
406406
// Default implementation of 'registerMethods(with:)'.
407407
extension Test_TestService.StreamingServiceProtocol {
408-
\(access) func registerMethods(with router: inout GRPCCore.RPCRouter) {
408+
\(access) func registerMethods<Transport>(with router: inout GRPCCore.RPCRouter<Transport>) where Transport: GRPCCore.ServerTransport {
409409
router.registerHandler(
410410
forMethod: Test_TestService.Method.Unary.descriptor,
411411
deserializer: GRPCProtobuf.ProtobufDeserializer<Test_TestInput>(),
@@ -666,14 +666,14 @@ struct ProtobufCodeGeneratorTests {
666666
/// > Source IDL Documentation:
667667
/// >
668668
/// > Service docs.
669-
\(access) struct Client: ClientProtocol {
670-
private let client: GRPCCore.GRPCClient
669+
\(access) struct Client<Transport>: ClientProtocol where Transport: GRPCCore.ClientTransport {
670+
private let client: GRPCCore.GRPCClient<Transport>
671671
672672
/// Creates a new client wrapping the provided `GRPCCore.GRPCClient`.
673673
///
674674
/// - Parameters:
675675
/// - client: A `GRPCCore.GRPCClient` providing a communication channel to the service.
676-
\(access) init(wrapping client: GRPCCore.GRPCClient) {
676+
\(access) init(wrapping client: GRPCCore.GRPCClient<Transport>) {
677677
self.client = client
678678
}
679679

Tests/GRPCProtobufTests/ProtobufCodingTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ final class ProtobufCodingTests: XCTestCase {
6565
code: .invalidArgument,
6666
message:
6767
"""
68-
Can't deserialize to message of type TestMessage
68+
Can't deserialize to message of type TestMessage.
6969
"""
7070
)
7171
)

0 commit comments

Comments
 (0)