File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Tests/GRPCInProcessTransportTests Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,9 @@ struct InProcessTransportTests {
83
83
try $0. message
84
84
}
85
85
86
- let match = peerInfo. wholeMatch ( of: /in-process:\d+/ )
87
- #expect( match != nil )
86
+ let maybeMatch = peerInfo. wholeMatch ( of: /local: in-process:(\d+), remote: in-process:(\d+)/ )
87
+ let match = try #require( maybeMatch)
88
+ #expect( match. 1 == match. 2 )
88
89
}
89
90
}
90
91
}
@@ -123,7 +124,8 @@ private struct TestService: RegistrableRPCService {
123
124
request: ServerRequest < Void > ,
124
125
context: ServerContext
125
126
) async throws -> ServerResponse < String > {
126
- return ServerResponse ( message: context. remotePeer)
127
+ let peerInfo = " local: \( context. localPeer) , remote: \( context. remotePeer) "
128
+ return ServerResponse ( message: peerInfo)
127
129
}
128
130
129
131
func registerMethods( with router: inout RPCRouter ) {
You can’t perform that action at this time.
0 commit comments